-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
python-pytest-xdist: disable tests on darwin #25725
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
Conversation
|
||
# Test fails for python3: | ||
# dsession (unittest.loader._FailedTest) ImportError: cannot import name 'collect_one_node' | ||
doCheck = !stdenv.isDarwin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what is needed is a
checkPhase = ''
py.test
'';
but I'm not sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, I did have to disable some of the tests
''; | ||
|
||
checkPhase = '' | ||
py.test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In pytest runner you can disable tests like this:
py.test -k "not test_foo and not test_bar"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's about 10 test cases in total, I didn't want to disable them all separately.
Pushed e5a4da2 |
Hmm, I didn't check the build before pushing, but I'm getting failing tests on NixOS as well. |
Strange, pretty sure I tested it on both platforms. |
Motivation for this change
Not sure why the failure only happens on darwin (python3). http://hydra.nixos.org/build/52755528
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)