Issue #22955: Fixed test_operator. It left Python implementation in
sys.modules and broke test_ipaddress.
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 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 @@
def test_attrgetter(self):
attrgetter = self.module.attrgetter
- attrgetter = self.module.attrgetter
class A:
pass
a = A()