question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] python3.10 test failures

See original GitHub issue

When running tests with Python 3.10.0b1 (Gentoo Linux), the following tests fail:

FAILED tests/test_inspect.py::test_inspect_integer_with_methods - assert ("╭──────────────── <class 'int'> ─────────────────╮...
FAILED tests/test_log.py::test_log - AssertionError: assert ('\x1b[2;36m[TIME]\x1b[0m\x1b[2;36m '\n '\x1b[0m                 ...
FAILED tests/test_pretty.py::test_pretty_dataclass - assert "ExampleDataclass(foo=1000, bar='Hello, World', baz=['foo', 'bar'...
FAILED tests/test_segment.py::test_repr - assert "Segment('foo', None, [(ControlType.HOME, 0)])" == "Segment('foo', None, [

I’m attaching the full build log

build.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
willmcgugancommented, May 9, 2021

Those error seem to be due to a change in the repr format of various objects in Python3.10. Not a bug per-se but I’ll update the tests in the next release.

0reactions
github-actions[bot]commented, Nov 7, 2021

Did I solve your problem?

Consider sponsoring the ongoing work on Rich and Textual.

Or buy me a coffee to say thanks.

Will McGugan

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test failures with Python3.10 - Issues · ezlab / busco - GitLab
Hi, the Debian packaged version of busco received a bug report when trying to build with Python3.10.
Read more >
828998 – dev-lang/python-3.10.1 test failures: test_bdb ...
Bug 828998 - dev-lang/python-3.10.1 test failures: test_bdb test_doctest test_import test_importlib test_pickle test_runpy test_support.
Read more >
Python 3.10 test failures: DeprecationWarning: There is no ...
I think this is an asgiref bug - I think 3.10 has changed asyncio.get_event_loop() such that it no longer creates a loop if...
Read more >
1948522 – pytest's own tests fail with Python 3.10
pytest fails to build with Python 3.10.0a7. ... RunResult(1, outlines, errlines, duration=0.5) > assert ( repr(r) == "<RunResult ret=ExitCode.TESTS_FAILED len( ...
Read more >
Bug #1954321 “Python3.10 error” : Bugs : Glance
tox -e py310 fails - Please see comment #1. ... File "/usr/lib/python3.10/configparser.py", line 790, in get ... Fix tests on Python3.10.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found