Skip to content

Commit 18256f0

Browse files
bluetechblueyed
authored andcommitted
Remove some no-longer-needed compat code in test_assertion
(cherry picked from commit 20956b2)
1 parent d40e730 commit 18256f0

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

testing/test_assertion.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import collections.abc as collections_abc
1+
import collections.abc
22
import sys
33
import textwrap
44
from typing import Any
@@ -684,11 +684,8 @@ def test_frozenzet(self):
684684
assert len(expl) > 1
685685

686686
def test_Sequence(self):
687-
if not hasattr(collections_abc, "MutableSequence"):
688-
pytest.skip("cannot import MutableSequence")
689-
MutableSequence = collections_abc.MutableSequence
690-
691-
class TestSequence(MutableSequence): # works with a Sequence subclass
687+
# Test comparing with a Sequence subclass.
688+
class TestSequence(collections.abc.MutableSequence):
692689
def __init__(self, iterable):
693690
self.elements = list(iterable)
694691

0 commit comments

Comments
 (0)