mirror of
https://github.com/Textualize/rich.git
synced 2025-07-24 12:53:58 +00:00
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:
parent
e8fc236434
commit
376ded1a1a
1 changed files with 4 additions and 10 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue