You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I am having an issue with py.test xdist.
I have a PC running the socketserver.py with Loop = True to allow multiple tests, but this seems to be an issue.
When I run a simple test case like:
using the command line: py.test -d --tx socket=ip-of-pc:8888 --rsyncdir Testpackage Testpackage
The first executing will return the result, as expect. However, if the same line is executed again, py.test will fail with the following error message:
=================================== ERRORS ====================================
_______________________ ERROR collecting test_script.py _______________________
import file mismatch:
imported module 'Testpackage.test_script' has this __file__ attribute:
/home/user1/Downloads/pyexecnetcache/Testpackage/test_script.py
which is not the same as the test file we want to collect:
/home/user1/Downloads/pyexecnetcache/pyexecnetcache/Testpackage/test_script.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test
file modules
=========================== 1 error in 0.22 seconds ===========================
The package struct is:
Testpackage
|- __init__py
|- test_script.py
It seems like the socketserver doesn't do any cleanup, after the test has finished.
I have tried to delete the pyexecnetcache(put in trash) after the first test run, but this gives a similar result:
=================================== ERRORS ====================================
_______________________ ERROR collecting test_script.py _______________________
import file mismatch:
imported module 'Testpackage.test_script' has this __file__ attribute:
/home/user1/Downloads/pyexecnetcache/Testpackage/test_script.py
which is not the same as the test file we want to collect:
/home/user1/.local/share/Trash/files/pyexecnetcache.4/pyexecnetcache/Testpackag
e/test_script.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test
file modules
=========================== 1 error in 0.28 seconds ===========================
My client PC is running Linux, but it is a problem on windows too.
Im running py.test 2.9.2 and xdist 1.14
The text was updated successfully, but these errors were encountered:
Hi
I am having an issue with py.test xdist.
I have a PC running the socketserver.py with Loop = True to allow multiple tests, but this seems to be an issue.
When I run a simple test case like:
using the command line:
py.test -d --tx socket=ip-of-pc:8888 --rsyncdir Testpackage Testpackage
The first executing will return the result, as expect. However, if the same line is executed again, py.test will fail with the following error message:
The package struct is:
It seems like the socketserver doesn't do any cleanup, after the test has finished.
I have tried to delete the pyexecnetcache(put in trash) after the first test run, but this gives a similar result:
My client PC is running Linux, but it is a problem on windows too.
Im running py.test 2.9.2 and xdist 1.14
The text was updated successfully, but these errors were encountered: