forked from exercism/python-test-runner
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I try running pytest suites but I've an error :
INTERNALERROR> File "/opt/test-runner/runner/__init__.py", line 50, in pytest_collection_modifyitems
INTERNALERROR> items.sort(key=_sort_by_lineno)
INTERNALERROR> File "/opt/test-runner/runner/__init__.py", line 48, in _sort_by_lineno
INTERNALERROR> return TestOrder.lineno(test_id, source)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/opt/test-runner/runner/sort.py", line 94, in lineno
INTERNALERROR> return cls._cache[test_id].lineno
INTERNALERROR> ~~~~~~~~~~^^^^^^^^^
INTERNALERROR> KeyError: 'test_primes.py::test_isprime[prime_case0]'
The tests runs well locally but not with the python-grader. The grader works well with no parametrized pytest function.
I tried everything:
- Handle cache (remove, create)
- Upgrade pytest, pluggy
- Change the pytest parameters definition
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels