-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
test_cmdline_python_package() fails #74
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
Comments
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): This neither fails in my develop laptop nor in the CI system, see e.g. http://hudson.testrun.org/view/pytest/job/pytest/TOXENV=py27,label=linux/352/console so i wonder what the problem is. Could you try to track it down a bit more? And, failing that, provide more platform information? |
Original comment by Arfrever Frehtes Taifersar Arahesis (BitBucket: arfrever, GitHub: arfrever): This patch fixes test failure for me:
The fact that this test failure hasn't occurred with CPython 3 might indicate that there is another bug. |
Original comment by Arfrever Frehtes Taifersar Arahesis (BitBucket: arfrever, GitHub: arfrever): See differences in number of collected items: test_something.py . ================================================================= 1 passed in 0.01 seconds ================================================================== ===================================================================== in 0.17 seconds ====================================================================== test_something.py . ================================================================= 1 passed in 0.02 seconds ================================================================== test_something.py . ================================================================= 1 passed in 0.02 seconds ================================================================== |
Original comment by Arfrever Frehtes Taifersar Arahesis (BitBucket: arfrever, GitHub: arfrever): This problem occurs when there is a directory on sys.path and with init.py file. {{{ _pytest.main.Session._tryconvertpyarg() maybe should more intelligently handle x==".". If x is ".", then x.split('.') returns ['', ''], so the loop iterates twice on the same string. |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): i also fails for me, when running with pytest instead of tox |
Original comment by Arfrever Frehtes Taifersar Arahesis (BitBucket: arfrever, GitHub: arfrever): New patch:
|
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): fix issue74 - propperly filter out missfit names in _tryconvertpyarg |
Original comment by Arfrever Frehtes Taifersar Arahesis (BitBucket: arfrever, GitHub: arfrever): The test doesn't fail with previous code in _pytest/main.py.
|
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): tests fixed on current default |
Originally reported by: Arfrever Frehtes Taifersar Arahesis (BitBucket: arfrever, GitHub: arfrever)
test_cmdline_python_package() from testing/acceptance_test.py fails at least with CPython 2.6 and 2.7. It passes with CPython 3.1 and 3.2.
The text was updated successfully, but these errors were encountered: