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
[BUG] Equality with dict fails on MacOs #37
Comments
So with python 3.6 works, or you don't tested it? It's a real problem, since I don't have a Mac. Pickle is the only problem? You can build the C extension and make the other tests? |
3.6 not tested. It's actually
|
This is the py version. Have you tried to install the sdist package and see if it works? |
Anwyay, I installed the pure py version using |
Well, the variants that fail are in |
Because you are using the py version. Those tests are for the C extension. Try also |
Anyway it's true, there's a bug in the C Extension for the equality test with |
We are building the C extension, as you can see from the build log https://hydra.nixos.org/log/kygpgpsyq90i9j3wx7rmzxndcsvy00xa-python3.8-frozendict-2.0.6.drv, and the same build procedure run on linux passes all the tests https://hydra.nixos.org/log/i1lksnv7sj1sq796dlqmd9dzf7cyc4bc-python3.8-frozendict-2.0.6.drv. I see there's some creative trickery going on in the test suite to test the different backends - something could be diverging somewhere along the line here. p.s. as a mostly linux person who occasionally has to fix some macos stuff like this, I can say that macos is indeed very strange. |
I think the problem is in Clang. Probably he does not interpret well the |
Bingo. The problem is there, but I don't know why. |
Code is:
|
Fixed: 76728fc |
Well done - that certainly fixes the equality issue. I suspect the pickling tests are just something to do with the way we're invoking the test suite. |
I have no bug with pickle. Have you tried to do a manual test? |
Yes it seems to fail in a manual test too:
|
I can't reproduce on MacOS Mojave, Python 3.10. |
Can you open another bug for pickle and re-test with the latest version? |
On macos 10.15, with frozendict 2.0.5 or 2.0.6 and python 3.7, 3.8 or 3.9, the pickle-related tests fail for us.
Full build logs available https://hydra.nixos.org/log/qya0kdv55b2sxkfigkly17bryydbng4y-python3.8-frozendict-2.0.5.drv
Would love to know if anyone can reproduce this.
The text was updated successfully, but these errors were encountered: