1 parent d40e730 commit 18256f0Copy full SHA for 18256f0
1 file changed
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
@@ -684,11 +684,8 @@ def test_frozenzet(self):
684
assert len(expl) > 1
685
686
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
+ # Test comparing with a Sequence subclass.
+ class TestSequence(collections.abc.MutableSequence):
692
def __init__(self, iterable):
693
self.elements = list(iterable)
694
0 commit comments