We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 272be7e + 20956b2 commit eb00182Copy full SHA for eb00182
testing/test_assertion.py
@@ -1,4 +1,4 @@
1
-import collections.abc as collections_abc
+import collections.abc
2
import sys
3
import textwrap
4
from typing import Any
@@ -623,11 +623,8 @@ def test_frozenzet(self):
623
assert len(expl) > 1
624
625
def test_Sequence(self):
626
- if not hasattr(collections_abc, "MutableSequence"):
627
- pytest.skip("cannot import MutableSequence")
628
- MutableSequence = collections_abc.MutableSequence
629
-
630
- class TestSequence(MutableSequence): # works with a Sequence subclass
+ # Test comparing with a Sequence subclass.
+ class TestSequence(collections.abc.MutableSequence):
631
def __init__(self, iterable):
632
self.elements = list(iterable)
633
0 commit comments