https://bugzilla.redhat.com/show_bug.cgi?id=2310498
--- Comment #5 from Benson Muite benson_muite@emailplus.org ---
koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=128192832
One of hte tests fails locally for me:
+ /usr/bin/pytest -k 'not test_get_version and not test_tracking and not test_import_os_error' ============================= test session starts ============================== platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 rootdir: /builddir/build/BUILD/python-scooby-0.10.0-build/scooby-0.10.0 configfile: pyproject.toml plugins: console-scripts-1.4.1 collected 13 items / 3 deselected / 10 selected tests/test_scooby.py .......F.. [100%] =================================== FAILURES =================================== _______________________________ test_import_time _______________________________ @pytest.mark.skipif(not sys.platform.startswith('linux'), reason="Not Linux.") def test_import_time(): # Relevant for packages which provide a CLI: # How long does it take to import? cmd = ["time", "-f", "%U", sys.executable, "-c", "import scooby"] # Run it twice, just in case. subprocess.run(cmd) subprocess.run(cmd) # Capture it out = subprocess.run(cmd, capture_output=True)
# Currently we check t < 0.2 s.
assert float(out.stderr.decode("utf-8")[:-1]) < 0.2
E AssertionError: assert 0.23 < 0.2 E + where 0.23 = float('0.23') tests/test_scooby.py:211: AssertionError ----------------------------- Captured stderr call ----------------------------- 0.20 0.21 =========================== short test summary info ============================ FAILED tests/test_scooby.py::test_import_time - AssertionError: assert 0.23 <... ================== 1 failed, 9 passed, 3 deselected in 6.88s ===================