diff options
Diffstat (limited to 'tests/isolated/patcher_monkey_patch_unknown_module.py')
| -rw-r--r-- | tests/isolated/patcher_monkey_patch_unknown_module.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/isolated/patcher_monkey_patch_unknown_module.py b/tests/isolated/patcher_monkey_patch_unknown_module.py new file mode 100644 index 0000000..8b83200 --- /dev/null +++ b/tests/isolated/patcher_monkey_patch_unknown_module.py @@ -0,0 +1,14 @@ +from __future__ import print_function + +# no standard tests in this file, ignore +__test__ = False + +if __name__ == '__main__': + import eventlet + err = '' + try: + eventlet.monkey_patch(finagle=True) + except TypeError as e: + err = str(e) + assert 'finagle' in err, err + print('pass') |
