mirror of https://github.com/python/cpython
gh-96624: Fix test_dotted_but_module_not_loaded in testpatch.py (GH-96691)
* Update test_dotted_but_module_not_loaded to reflect the move of unittest.test to test.test_unittest.
This commit is contained in:
parent
df50938f58
commit
569ca27293
|
@ -1923,7 +1923,7 @@ class PatchTest(unittest.TestCase):
|
|||
del sys.modules['test.test_unittest.testmock.support']
|
||||
del sys.modules['test.test_unittest.testmock']
|
||||
del sys.modules['test.test_unittest']
|
||||
del sys.modules['unittest']
|
||||
del sys.modules['test']
|
||||
|
||||
# now make sure we can patch based on a dotted path:
|
||||
@patch('test.test_unittest.testmock.support.X')
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fixed the failure of repeated runs of ``test.test_unittest`` caused by side effects in ``test_dotted_but_module_not_loaded``.
|
Loading…
Reference in New Issue