From: Michael Foord Date: Wed, 14 Mar 2012 20:01:31 +0000 (-0700) Subject: And another one... mock import fix. X-Git-Tag: v3.3.0a2~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebff09793775a0310f9f16fed194127fb62ccdcc;p=thirdparty%2FPython%2Fcpython.git And another one... mock import fix. --- diff --git a/Lib/unittest/test/testmock/testpatch.py b/Lib/unittest/test/testmock/testpatch.py index fb3153ae562a..fccad31c92e7 100644 --- a/Lib/unittest/test/testmock/testpatch.py +++ b/Lib/unittest/test/testmock/testpatch.py @@ -1535,7 +1535,7 @@ class PatchTest(unittest.TestCase): self.assertEqual(foo.fish, 'tasty') - @patch('mock.patch.TEST_PREFIX', 'foo') + @patch('unittest.mock.patch.TEST_PREFIX', 'foo') def test_patch_test_prefix(self): class Foo(object): thing = 'original' @@ -1558,7 +1558,7 @@ class PatchTest(unittest.TestCase): self.assertEqual(foo.test_two(), 'original') - @patch('mock.patch.TEST_PREFIX', 'bar') + @patch('unittest.mock.patch.TEST_PREFIX', 'bar') def test_patch_dict_test_prefix(self): class Foo(object): def bar_one(self):