changeset: 96180:c93e5ba1cc20 user: Serhiy Storchaka date: Wed May 20 22:02:43 2015 +0300 files: Lib/test/test_operator.py description: Issue #22955: Fixed test_operator. It left Python implementation in sys.modules and broke test_ipaddress. diff -r 52b05cedb7c3 -r c93e5ba1cc20 Lib/test/test_operator.py --- a/Lib/test/test_operator.py Wed May 20 14:38:50 2015 -0400 +++ b/Lib/test/test_operator.py Wed May 20 22:02:43 2015 +0300 @@ -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()