]> granicus.if.org Git - python/commitdiff
And another one... mock import fix.
authorMichael Foord <michael@voidspace.org.uk>
Wed, 14 Mar 2012 20:01:31 +0000 (13:01 -0700)
committerMichael Foord <michael@voidspace.org.uk>
Wed, 14 Mar 2012 20:01:31 +0000 (13:01 -0700)
Lib/unittest/test/testmock/testpatch.py

index fb3153ae562ad47d248d4cbcd751632c9dffd5b1..fccad31c92e7185aa77f7d525c6afc01d3044bfa 100644 (file)
@@ -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):