Issue #22955: Fixed test_operator. It left Python implementation in

sys.modules and broke test_ipaddress.
This commit is contained in:
Serhiy Storchaka 2015-05-20 22:02:43 +03:00
parent cf45f022b7
commit 60335855f0
1 changed files with 0 additions and 4 deletions

View File

@ -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)
@ -506,7 +503,6 @@ class OperatorPickleTestCase:
return pickle.loads(pickled)
def test_attrgetter(self):
attrgetter = self.module.attrgetter
attrgetter = self.module.attrgetter
class A:
pass