Open kloczek opened 3 months ago
With only test.py:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-rnc2rng-2.7.0-3.fc36.x86_64/usr/lib64/python3.9/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-rnc2rng-2.7.0-3.fc36.x86_64/usr/lib/python3.9/site-packages + /usr/bin/pytest -ra -m 'not network' test.py ==================================================================================== test session starts ==================================================================================== platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0 benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /home/tkloczko/rpmbuild/BUILD/rnc2rng-2.7.0 plugins: forked-1.6.0, localserver-0.8.1, flaky-3.8.1, hypothesis-6.99.11, jaraco.test-5.4.0, checkdocs-2.10.1, trio-0.8.0, asyncio-0.23.6, benchmark-4.0.0 asyncio: mode=strict collected 2 items test.py F. [100%] ========================================================================================= FAILURES ========================================================================================== _____________________________________________________________________________________ FileTest.runTest ______________________________________________________________________________________ self = <test.FileTest testMethod=runTest> def runTest(self): > root = rnc2rng.load(self.fn) test.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rnc2rng/__init__.py:4: in load return parser.parse(f=f) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src = None, f = 'runTest' def parse(src=None, f=None): assert src is None or f is None if f is not None and isinstance(f, str_types): fn = f if is_url(fn): with urlopen(fn) as f: bytes = f.read() else: > with open(fn, 'rb') as f: E FileNotFoundError: [Errno 2] No such file or directory: 'runTest' rnc2rng/parser.py:708: FileNotFoundError ================================================================================== short test summary info ================================================================================== FAILED test.py::FileTest::runTest - FileNotFoundError: [Errno 2] No such file or directory: 'runTest' ================================================================================ 1 failed, 1 passed in 0.18s ================================================================================
With default settings pytest fails on ::project
::project
Thanks for the issue. I'll look into adding support for pytest.
Until then, I've just been starting a venv, running pip install, then running test.py.
With only test.py: