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
pythonPackages.sh: fix tests on Python 3.7 #52607
Conversation
Did you report the issue upstream? I would prefer if you disable the single test. |
953b79a
to
26fb110
Compare
The issue is that the test uses I patched the interpreter path in the test and enabled UTF-8 support, so the test is not skipped for any Python version. I also added |
|
I wonder if osx is not detected correctly: https://github.com/amoffat/sh/blob/master/test.py#L61 |
Ah, they probably test with a different ls, in nixpkgs we use coreutils also for macOS. I would say either do not run those tests or disable checkPhase on macOS. |
5e495f6
to
d08254f
Compare
I added a patch that skips the failing tests on macOS. |
There is some new Unicode related issue introduced by Python 3.7, which causes a test to fail. I attempted to fix it using
glibcLocales
andLC_ALL=en_US.UTF-8
, but this did not work.Python 3.7 has some Unicode related changes, but I don't see how they would cause this problem.
I have been unable to reproduce this error outside of the Nix build, which indicates that this probably won't cause issues for users.
Here is the error message:
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)