Skip to content

Commit

Permalink
Revert "bpo-44019: Add test_all_exported_names for operator module (G…
Browse files Browse the repository at this point in the history
…H-29124)"

This reverts commit 37fad7d.
  • Loading branch information
corona10 authored Oct 21, 2021
1 parent 37fad7d commit 1dbe006
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Lib/test/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ def __iter__(self):


class OperatorTestCase:
def test___all__(self):
operator = self.module
actual_all = set(operator.__all__)
computed_all = set()
for name in vars(operator):
if name.startswith('__'):
continue
value = getattr(operator, name)
if value.__module__ in ('operator', '_operator'):
computed_all.add(name)
self.assertSetEqual(computed_all, actual_all)

def test_lt(self):
operator = self.module
self.assertRaises(TypeError, operator.lt)
Expand Down

0 comments on commit 1dbe006

Please sign in to comment.