Skip to content
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

python3 setup.py test fails #92

Open
risner opened this issue May 31, 2021 · 3 comments
Open

python3 setup.py test fails #92

risner opened this issue May 31, 2021 · 3 comments

Comments

@risner
Copy link

risner commented May 31, 2021

File "/usr/local/lib/python3.8/unittest/loader.py", line 205, in loadTestsFromName
test = obj()
TypeError: run_program() missing 3 required positional arguments: 'program', 'args', and 'operator_lookup'

Are tests not wired/written for setup.py yet?

@richardkiss
Copy link
Contributor

Correct, tests aren't wired for setup.py. Using py.test tests works for now. A PR to connect the two would be great.

@risner
Copy link
Author

risner commented Jun 1, 2021 via email

@poypoyan
Copy link

poypoyan commented Jun 2, 2021

Hi! I guess the most "ad hoc" way to do this is to add test_suite="tests" inside setup() (thanks SO), as well as adding the version as being said in issue #93 . However, doing setup.py test is deprecated according to pypa/setuptools#1684 .

Another Edit: pytest can be connected to setup.py via pytest-runner. However this time, the command is setup.py pytest (not test). So, test or pytest (or both)? Take note that pytest-runner is also deprecated according to https://github.com/pytest-dev/pytest-runner/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants