This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients michael.foord, serhiy.storchaka
Date 2018-06-03.11:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528027150.62.0.592728768989.issue33747@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./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'

----------------------------------------------------------------------
History
Date User Action Args
2018-06-03 11:59:10serhiy.storchakasetrecipients: + serhiy.storchaka, michael.foord
2018-06-03 11:59:10serhiy.storchakasetmessageid: <1528027150.62.0.592728768989.issue33747@psf.upfronthosting.co.za>
2018-06-03 11:59:10serhiy.storchakalinkissue33747 messages
2018-06-03 11:59:10serhiy.storchakacreate