-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError when starting pytest session #3265
Comments
|
It looks like your environment is running without signed zero? This is a standards-violating compiler optimisation, people sometimes use in hopes of better performance (e.g. To check: can your Python represent |
|
(whatever the cause, it would be nice to give a high-diagnostic-value error message in these cases, rather than an assertion error. I'm coming around to the idea of leading every call to |
|
Oh, I just noticed that you're using Given that I'm closing this issue as out of scope, although note that we do welcome bug reports about upcoming pre-releases - e.g. we currently have Python 3.11 alpha in our CI system, and aspire to fix the known issues before the stable release in October. |
|
@Zac-HD -- I'm really sorry, I meant to reply tp your original follow-up, but I guess I forgot to hit 'Comment'. Yes I think that was the issue! I had compiled with Thank you so much for the quick turnaround amd for making great suggestions and comments. I learned quite a bit and came away feeling positive (no pun intended). |
|
Also, here's my output, attempting to check if the python can represent signed zero. I'm happy to do more if you're interested: /data/media/0/src/python310/build/python.exe
Python 3.10.0rc2+ (heads/branch-v3.10.0-dirty:e0b61b2, Dec 20 2021, 08:28:23) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> -0.0
-0.0
>>> 0.0
0.0
>>> (-0.1) * (0/0.1)
-0.0 |
Oh that's awesome that you're using 3.11. I am using it off and on as well. I use it as my libpython for gdb. The error messages are truly next level. (Side note, I just saw the video by (core dev) Raymond Hettinger yesterday where he talks about testing tools. He has some glowing words to say about hypothesis. You've probably already heard about but if not, it's worth a watch: https://m.youtube.com/watch?v=ARKbfWk4Xyw) Keep up the awesome work! ✌💥 |
Who wouldn't want fun, safe math optimizations?? Unfortunately "If fast-math was to give always the correct results, it wouldn’t be fast-math, it would be the standard way of doing math." 😅 The canonical way of checking is the 3.11's error messages and handling are so exciting, I can't wait for the tracebacks and the ExceptionGroup type. And PEP-678 notes are also going to be pretty nice, if I say so myself 😉 |
Ah, cool, I learned something new! And with respect to the error messages (and new caret(s)) , sometimes I run 3.11 just to benefit from its more specific error messages 🤣 |
When starting a pytest session in a brand-new python 3.10 venv running on Debian Linux (sid), and running pytest via
./venv/bin/python3.10 -m pytest, an assertion is encountered during the plugin gathering (I assume?) process in which the hypothesis pytest plugin is initialized.At this point it looks like it is initializing some of the strategy types, and hits an assert while calling a function that looks related to numeric strategy:
Full traceback and pytest log (happy to provide
-vvand/or trace/debug logs from pytest if it would help):The process exit status is 3.
Full list of installed packages:
Thanks for looking at this issue.
The text was updated successfully, but these errors were encountered: