+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-doit-py-0.5.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-doit-py-0.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0
collected 25 items
tests/test_coverage.py .......... [ 40%]
tests/test_docs.py F.... [ 60%]
tests/test_package.py ..... [ 80%]
tests/test_pyflakes.py ..... [100%]
================================================================================= FAILURES =================================================================================
_________________________________________________________________________ TestSpell.test_check_ok __________________________________________________________________________
self = <test_docs.TestSpell object at 0x7f9e10babc70>
def test_check_ok(self):
> assert docs.check_no_output(str(SAMPLE_PATH / 'flake_fail.py'),
str(SAMPLE_PATH / 'dict.txt'))
E AssertionError: assert False
E + where False = <function check_no_output at 0x7f9e10c60ee0>('/home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0/tests/sample/flake_fail.py', '/home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0/tests/sample/dict.txt')
E + where <function check_no_output at 0x7f9e10c60ee0> = docs.check_no_output
E + and '/home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0/tests/sample/flake_fail.py' = str((PosixPath('/home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0/tests/sample') / 'flake_fail.py'))
E + and '/home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0/tests/sample/dict.txt' = str((PosixPath('/home/tkloczko/rpmbuild/BUILD/doit-py-0.5.0/tests/sample') / 'dict.txt'))
tests/test_docs.py:11: AssertionError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
a
comment
without
a
typo
def
do
nothing
number
========================================================================= short test summary info ==========================================================================
FAILED tests/test_docs.py::TestSpell::test_check_ok - AssertionError: assert False
======================================================================= 1 failed, 24 passed in 0.24s =======================================================================
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-isolationbuildwith--no-isolationI'm using during all processes only locally installed modulesHere is pytest output:
Details
List of modules isnatlled in build env
Details