revert expected test_repr value for py3.10 following upstream

All Enum changes were reverted from Python 3.10 just before rc1.  Revert
the test changes to fix test failures with 3.10.0rc1.
This commit is contained in:
Michał Górny 2021-08-06 07:56:09 +02:00
parent e8fc236434
commit 376ded1a1a

View file

@ -10,16 +10,10 @@ from rich.style import Style
def test_repr():
assert repr(Segment("foo")) == "Segment('foo')"
home = (ControlType.HOME, 0)
if sys.version_info >= (3, 10):
assert (
repr(Segment("foo", None, [home]))
== "Segment('foo', None, [(ControlType.HOME, 0)])"
)
else:
assert (
repr(Segment("foo", None, [home]))
== "Segment('foo', None, [(<ControlType.HOME: 3>, 0)])"
)
assert (
repr(Segment("foo", None, [home]))
== "Segment('foo', None, [(<ControlType.HOME: 3>, 0)])"
)
def test_line():