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.dill: enable tests #78215
Conversation
039e0e0
to
d8db97a
Compare
honestly, looking at the test suite, the original comment is pretty accurate. The test suite doesn't:
I would recommend AGAINST using a test suite for this package, and would probably go so far as to say you shouldn't use this package in production because of it's odd import behavior. For example, the imports begin to create cycles:
|
Fair, but a different package I'm working on fixing (qiskit) requires it as
of October 2019 ish.
https://qiskit.org/documentation/release_notes.html
Relevant: dill <https://pypi.org/project/dill/> was added as a requirement.
This is needed to enable running passmanager.run() in parallel for more
than one circuit
Thoughts, since I'm locked into the upstream package requirements?
…On Tue, Jan 21, 2020, 6:50 PM Jon ***@***.***> wrote:
honestly, looking at the test suite, the original comment is pretty
accurate. The test suite doesn't:
- use a normal test runner like nose, pytest, or unittest
- ran in imperative manner
- few other things as well
I would recommend AGAINST using a test suite for this package, and would
probably go so far as to say you shouldn't use this package in production
because of it's odd import behavior. For example, the imports begin to
create cycles:
ImportError while importing test module '/build/dill-0.3.1.1/tests/test_module.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/blf6jxfx5g36gp0yadm0ykr8h6fmif39-python3.7-dill-0.3.1.1/lib/python3.7/site-packages/dill/__diff.py:226: in _imp
mod = __import__(*args, **kwds)
tests/test_module.py:11: in <module>
import test_mixins as module
/nix/store/blf6jxfx5g36gp0yadm0ykr8h6fmif39-python3.7-dill-0.3.1.1/lib/python3.7/site-packages/dill/__diff.py:226: in _imp
mod = __import__(*args, **kwds)
E ModuleNotFoundError: No module named 'test_mixins'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#78215?email_source=notifications&email_token=ACNZYI7BHSROM3RISRA63B3Q66C53A5CNFSM4KJ26DX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJRWZ3Y#issuecomment-576941295>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNZYI2ODXOHL4HSPKSSDDLQ66C53ANCNFSM4KJ26DXQ>
.
|
hard to say, really hurts this is also an upstream issue. |
if you really want the |
@jonringer @FRidh can you approve or reject? Strictly speaking, this PR at least runs SOME tests, even if the tests are messy. |
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.
otherwise LGTM
9e96585
to
e1a918b
Compare
Incorporated all suggestions. Builds locally. |
@GrahamcOfBorg build python3Packages.dill python2Packages.dill |
Thanks for your help! |
@GrahamcOfBorg build python3Packages.dill |
Maybe also disable python2 version? looks like build isn't working? |
@GrahamcOfBorg build python3Packages.dill |
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.
please squash commits as well
Disable a few failing tests, see comments for what's failing.
e1a918b
to
215fac2
Compare
@jonringer done |
Motivation for this change
Tests in
pythonPackages.dill
were previously disabled. This enables most of the tests. Some tests were disabled, mostly because I tried to track down the errors and didn't have time to figure them out. Seems to maybe be some pathing/import issues from Nix.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)