[Python-checkins] cpython: Fix another mock import
michael.foord
python-checkins at python.org
Wed Mar 14 20:59:14 CET 2012
http://hg.python.org/cpython/rev/6493f091b401
changeset: 75636:6493f091b401
parent: 75634:82d670c8268d
user: Michael Foord <michael at voidspace.org.uk>
date: Wed Mar 14 12:58:46 2012 -0700
summary:
Fix another mock import
files:
Lib/unittest/test/testmock/testmock.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/unittest/test/testmock/testmock.py b/Lib/unittest/test/testmock/testmock.py
--- a/Lib/unittest/test/testmock/testmock.py
+++ b/Lib/unittest/test/testmock/testmock.py
@@ -32,7 +32,7 @@
# 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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list