summaryrefslogtreecommitdiff
path: root/Lib/test/test_operator.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-20 22:02:43 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-20 22:02:43 +0300
commit06b0ade6b30a6c64c56333fc7e288acf66d569a0 (patch)
tree32a0276e21561cb3b18b5ac4ae92a19d0d988f3e /Lib/test/test_operator.py
parent68e98ae3a775ae11fd29284dd9bd0e77b5345bbf (diff)
downloadcpython-06b0ade6b30a6c64c56333fc7e288acf66d569a0.tar.gz
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 ef9cf3e5cd..da9c8ef34f 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()