summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_operator.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-20 19:02:43 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-20 19:02:43 (GMT)
commit60335855f0388109f9fe92e6aa54ddb4e8723034 (patch)
tree7f4c66351e39141d0f4a2c730a9a899797bf3068 /Lib/test/test_operator.py
parentcf45f022b7f79157903eb326c61bae0135a0856e (diff)
downloadcpython-60335855f0388109f9fe92e6aa54ddb4e8723034.zip
cpython-60335855f0388109f9fe92e6aa54ddb4e8723034.tar.gz
cpython-60335855f0388109f9fe92e6aa54ddb4e8723034.tar.bz2
Issue #22955: Fixed test_operator. It left Python implementation in
sys.modules and broke test_ipaddress.
Diffstat (limited to 'Lib/test/test_operator.py')
-rw-r--r--Lib/test/test_operator.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_operator.py b/Lib/test/test_operator.py
index ef9cf3e..da9c8ef 100644
--- a/Lib/test/test_operator.py
+++ b/Lib/test/test_operator.py
@@ -37,9 +37,6 @@ class Seq2(object):
class OperatorTestCase:
- def setUp(self):
- sys.modules['operator'] = self.module
-
def test_lt(self):
operator = self.module
self.assertRaises(TypeError, operator.lt)
@@ -507,7 +504,6 @@ class OperatorPickleTestCase:
def test_attrgetter(self):
attrgetter = self.module.attrgetter
- attrgetter = self.module.attrgetter
class A:
pass
a = A()