-
Notifications
You must be signed in to change notification settings - Fork 306
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
4.0.2: test suite is failing in two units #959
Comments
This is a duplicate of #911, which went into depth on how the tests are meant to be run, and why it's okay to skip the integration tests. That said, I think the particular error that you're getting re: |
Indeed after apply patches from master pytest is now OK + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-twine-4.0.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-twine-4.0.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ xvfb-run -a /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/twine-4.0.2, configfile: pytest.ini
plugins: services-2.2.1, socket-0.5.1
collected 181 items
tests/test_auth.py ................... [ 10%]
tests/test_check.py ............. [ 17%]
tests/test_cli.py .. [ 18%]
tests/test_commands.py ..... [ 21%]
tests/test_main.py ... [ 23%]
tests/test_package.py ......................... [ 37%]
tests/test_register.py .... [ 39%]
tests/test_repository.py ......................... [ 53%]
tests/test_settings.py .............. [ 60%]
tests/test_upload.py .............................. [ 77%]
tests/test_utils.py ............................... [ 94%]
tests/test_wheel.py .......... [100%]
==================================================================================== 181 passed in 4.88s ====================================================================================
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-05f8ce49-87c4-4fe9-9a53-bb64483c1cc4'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-062af784-9d84-4d25-9b85-1e4838790f31'
warnings.warn( Thank you 👍 |
BTW .. do you know why those errors about not empty directories are reported? 🤔 |
No; I don't see those warnings when running locally. That said, it looks like they're referring to tests that aren't from this project, e.g. pip/test_network_cache.py at ba11a20b78f9194ef35f3625f9daa77e08b9214c · pypa/pip |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesHere is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: