🐞 Python 3.9.7 causes tests to fail
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Current Behavior
Python 3.9.7 was found by the CI to cause issues with the existing test suite.
Expected Behavior
Tests should run as 3.9.5 and successfully pass.
Steps To Reproduce
-
Set environment to 3.9.7 This can be done with
poetry env use 3.9.7andpyenv local 3.9.7 -
Run
make tests
Environment
- OS: Mac, Windows, Linux
Anything else?
This workflow shows the bugs if you wish to see the problems before starting https://github.com/microsoft/electionguard-python/runs/3655735644?check_suite_focus=true
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Issue 41405: python 3.9.0b5 test - Issue Tracker
Date User Action
2022‑04‑11 14:59:34 admin set
2020‑07‑28 21:15:27 ned.deily set
2020‑07‑28 06:03:18 Jim.Jewett set
Read more >Linking to system python lib fails… | Apple Developer Forums
Code that compiled fine with XCode 12 / Big Sur fails on XCode 13/Monterey with the linker error: "cannot link directly with dylib/framework,...
Read more >Get Started — pytest documentation
pytest discovers all tests following its Conventions for Python test ... values in the assertion to help you understand the reason for the...
Read more >in VS Code ImportError: cannot import name 'Mapping' from ...
As stated by others, this is caused by a change in the collections interface starting with Python 3.10. As far as I can...
Read more >M220P: can't manually run projections test - MongoDB
(well, the requests module, obviously) I've got python 3.9.7 running on Ubuntu. thanks, Phil. steevej (Steeve Juneau) May 8, 2022, 1:21pm #2.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ronnie-llamado If you can work on this that would be amazing, but regardless, thank you so much for the clarification.
@keithrfung I realized this right as #458 was merged. Pulling over last comment from PR:
Explicitly defining
__init__forAnnotatedStringwill complete the workaround for Python 3.9.7. In addition,emails()can be cast as anAnnotatedStringto ensure testing coverage.