From 83a16856ee1db8eb49a08c4492ece8239ffb5819 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Wed, 14 Mar 2012 12:58:46 -0700 Subject: [PATCH] Fix another mock import --- Lib/unittest/test/testmock/testmock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/unittest/test/testmock/testmock.py b/Lib/unittest/test/testmock/testmock.py index 07d8cbdbd66..ae9822eac66 100644 --- a/Lib/unittest/test/testmock/testmock.py +++ b/Lib/unittest/test/testmock/testmock.py @@ -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):