mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
And another one... mock import fix.
This commit is contained in:
parent
be55566c25
commit
ebff097937
1 changed files with 2 additions and 2 deletions
|
@ -1535,7 +1535,7 @@ class PatchTest(unittest.TestCase):
|
||||||
self.assertEqual(foo.fish, 'tasty')
|
self.assertEqual(foo.fish, 'tasty')
|
||||||
|
|
||||||
|
|
||||||
@patch('mock.patch.TEST_PREFIX', 'foo')
|
@patch('unittest.mock.patch.TEST_PREFIX', 'foo')
|
||||||
def test_patch_test_prefix(self):
|
def test_patch_test_prefix(self):
|
||||||
class Foo(object):
|
class Foo(object):
|
||||||
thing = 'original'
|
thing = 'original'
|
||||||
|
@ -1558,7 +1558,7 @@ class PatchTest(unittest.TestCase):
|
||||||
self.assertEqual(foo.test_two(), 'original')
|
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):
|
def test_patch_dict_test_prefix(self):
|
||||||
class Foo(object):
|
class Foo(object):
|
||||||
def bar_one(self):
|
def bar_one(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue