mirror of https://github.com/Textualize/rich.git
Merge pull request #1388 from mgorny/py310-fixes
revert expected test_repr value for py3.10 following upstream
This commit is contained in:
commit
2786097ec3
|
@ -10,12 +10,6 @@ from rich.style import Style
|
||||||
def test_repr():
|
def test_repr():
|
||||||
assert repr(Segment("foo")) == "Segment('foo')"
|
assert repr(Segment("foo")) == "Segment('foo')"
|
||||||
home = (ControlType.HOME, 0)
|
home = (ControlType.HOME, 0)
|
||||||
if sys.version_info >= (3, 10):
|
|
||||||
assert (
|
|
||||||
repr(Segment("foo", None, [home]))
|
|
||||||
== "Segment('foo', None, [(ControlType.HOME, 0)])"
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
assert (
|
assert (
|
||||||
repr(Segment("foo", None, [home]))
|
repr(Segment("foo", None, [home]))
|
||||||
== "Segment('foo', None, [(<ControlType.HOME: 3>, 0)])"
|
== "Segment('foo', None, [(<ControlType.HOME: 3>, 0)])"
|
||||||
|
|
Loading…
Reference in New Issue