diff options
author | Anthony Sottile <asottile@umich.edu> | 2020-10-02 19:57:16 -0700 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2020-10-02 19:57:55 -0700 |
commit | 53b5f64b4be8ba51dc5c9168f071c67da19bed40 (patch) | |
tree | e574abb8f4d6f6944fd4ca959834bce63bd5490b /testing/test_assertion.py | |
parent | a23666d55494f6960dfc8845757c391b5aedec0b (diff) | |
download | pytest-53b5f64b4be8ba51dc5c9168f071c67da19bed40.tar.gz |
py36+: resolve py36 TODOs
Diffstat (limited to 'testing/test_assertion.py')
-rw-r--r-- | testing/test_assertion.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 258be48b8..d6dc9fc98 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -1,8 +1,8 @@ -import collections.abc import sys import textwrap from typing import Any from typing import List +from typing import MutableSequence from typing import Optional import attr @@ -637,8 +637,7 @@ class TestAssert_reprcompare: def test_Sequence(self) -> None: # Test comparing with a Sequence subclass. - # TODO(py36): Inherit from typing.MutableSequence[int]. - class TestSequence(collections.abc.MutableSequence): # type: ignore[type-arg] + class TestSequence(MutableSequence[int]): def __init__(self, iterable): self.elements = list(iterable) |