Skip to content

Commit

Permalink
Merge pull request pytest-dev#7047 from bluetech/rm-test_assertion-abc
Browse files Browse the repository at this point in the history
Remove some no-longer-needed compat code in test_assertion
  • Loading branch information
bluetech committed Apr 8, 2020
2 parents 272be7e + 20956b2 commit eb00182
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions testing/test_assertion.py
@@ -1,4 +1,4 @@
import collections.abc as collections_abc
import collections.abc
import sys
import textwrap
from typing import Any
Expand Down Expand Up @@ -623,11 +623,8 @@ def test_frozenzet(self):
assert len(expl) > 1

def test_Sequence(self):
if not hasattr(collections_abc, "MutableSequence"):
pytest.skip("cannot import MutableSequence")
MutableSequence = collections_abc.MutableSequence

class TestSequence(MutableSequence): # works with a Sequence subclass
# Test comparing with a Sequence subclass.
class TestSequence(collections.abc.MutableSequence):
def __init__(self, iterable):
self.elements = list(iterable)

Expand Down

0 comments on commit eb00182

Please sign in to comment.