summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Foord <michael@voidspace.org.uk>2012-03-14 20:01:31 (GMT)
committerMichael Foord <michael@voidspace.org.uk>2012-03-14 20:01:31 (GMT)
commitebff09793775a0310f9f16fed194127fb62ccdcc (patch)
tree5a6def500d0ec3ba02c0b89f5cb371d3cb03bbda
parentbe55566c25be5af76247acb92ae43567426154ce (diff)
downloadcpython-ebff09793775a0310f9f16fed194127fb62ccdcc.zip
cpython-ebff09793775a0310f9f16fed194127fb62ccdcc.tar.gz
cpython-ebff09793775a0310f9f16fed194127fb62ccdcc.tar.bz2
And another one... mock import fix.
-rw-r--r--Lib/unittest/test/testmock/testpatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/test/testmock/testpatch.py b/Lib/unittest/test/testmock/testpatch.py
index fb3153a..fccad31 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):