mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #22955: Fixed test_operator. It left Python implementation in
sys.modules and broke test_ipaddress.
This commit is contained in:
parent
cf45f022b7
commit
60335855f0
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue