]> granicus.if.org Git - python/commitdiff
Fix another mock import
authorMichael Foord <michael@voidspace.org.uk>
Wed, 14 Mar 2012 19:58:46 +0000 (12:58 -0700)
committerMichael Foord <michael@voidspace.org.uk>
Wed, 14 Mar 2012 19:58:46 +0000 (12:58 -0700)
Lib/unittest/test/testmock/testmock.py

index 07d8cbdbd66b1b6275fd7c5275bcae3e42340ee7..ae9822eac66f70736595bfe6d10f43fb4ad77bde 100644 (file)
@@ -32,7 +32,7 @@ class MockTest(unittest.TestCase):
         # if __all__ is badly defined then import * will raise an error
         # We have to exec it because you can't import * inside a method
         # in Python 3
-        exec("from mock import *")
+        exec("from unittest.mock import *")
 
 
     def test_constructor(self):