Commit 998d84f6 authored by Michael Foord's avatar Michael Foord

Fix another mock import

parent 73c53bb6
...@@ -32,7 +32,7 @@ class MockTest(unittest.TestCase): ...@@ -32,7 +32,7 @@ class MockTest(unittest.TestCase):
# if __all__ is badly defined then import * will raise an error # if __all__ is badly defined then import * will raise an error
# We have to exec it because you can't import * inside a method # We have to exec it because you can't import * inside a method
# in Python 3 # in Python 3
exec("from mock import *") exec("from unittest.mock import *")
def test_constructor(self): def test_constructor(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment