summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorMichael Foord <michael@voidspace.org.uk>2012-03-14 20:30:29 (GMT)
committerMichael Foord <michael@voidspace.org.uk>2012-03-14 20:30:29 (GMT)
commitc17adf41511f7165935074bc505e09e0574f59be (patch)
tree87b20de7aa09efba5a325bb39c2cffaea0b7154e /Lib/unittest
parentebff09793775a0310f9f16fed194127fb62ccdcc (diff)
downloadcpython-c17adf41511f7165935074bc505e09e0574f59be.zip
cpython-c17adf41511f7165935074bc505e09e0574f59be.tar.gz
cpython-c17adf41511f7165935074bc505e09e0574f59be.tar.bz2
Remove Python 2 compatibility cruft from unittest.mock
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/mock.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 98d680b..89fe232 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -1,5 +1,8 @@
# mock.py
# Test tools for mocking and patching.
+# Maintained by Michael Foord
+# Backport for other versions of Python available from
+# http://pypi.python.org/pypi/mock
__all__ = (
'Mock',
@@ -259,11 +262,6 @@ _missing = sentinel.MISSING
_deleted = sentinel.DELETED
-class OldStyleClass:
- pass
-ClassType = type(OldStyleClass)
-
-
def _copy(value):
if type(value) in (dict, list, tuple, set):
return type(value)(value)