New submission from Serhiy Storchaka <[email protected]>:
$ ./python -m test -v -m test_patch_propogrates_exc_on_exit test_unittest
...
test_patch_propogrates_exc_on_exit (unittest.test.testmock.testpatch.PatchTest)
... ERROR
======================================================================
ERROR: test_patch_propogrates_exc_on_exit
(unittest.test.testmock.testpatch.PatchTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/unittest/test/testmock/testpatch.py", line
1699, in test_patch_propogrates_exc_on_exit
self.assertRaises(RuntimeError, test)
File "/home/serhiy/py/cpython/Lib/unittest/case.py", line 743, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "/home/serhiy/py/cpython/Lib/unittest/case.py", line 178, in handle
callable_obj(*args, **kwargs)
File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1183, in patched
arg = patching.__enter__()
File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1239, in __enter__
self.target = self.getter()
File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1409, in <lambda>
getter = lambda: _importer(target)
File "/home/serhiy/py/cpython/Lib/unittest/mock.py", line 1092, in _importer
thing = __import__(import_path)
ModuleNotFoundError: No module named 'squizz'
----------------------------------------------------------------------
----------
components: Tests
messages: 318534
nosy: michael.foord, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Failed separate test_patch_propogrates_exc_on_exit in test_unittest
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33747>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com