File: patcher_builtin.py

package info (click to toggle)
python-eventlet 0.39.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,172 kB
  • sloc: python: 24,975; sh: 78; makefile: 31
file content (10 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
if __name__ == '__main__':
    from tests.mock import patch

    import eventlet
    from eventlet import hubs
    with patch.object(hubs, 'notify_opened') as mock_func:
        eventlet.monkey_patch(builtins=True)
        with open(__file__) as f:
            mock_func.assert_called_with(f.fileno())
    print('pass')