I am in the process of updating python-mnemonic.  Historically, tests have not 
been enabled.  I can build the new version just fine, but when I enable tests 
by adding a Build-Depend on "python3-pytest <!nocheck>” the build fails [1] 
with the following error:

    def test_vectors(self) -> None:
>       with open("vectors.json", "r") as f:
E       FileNotFoundError: [Errno 2] No such file or directory: 'vectors.json'
tests/test_mnemonic.py:45: FileNotFoundError

vectors.json is located in the root [2].  But for some reason it is not 
available in the test environment (or the test is looking in the wrong place).  
I could, of course, disable the tests again.  But I would like to run them if 
possible.  Does anybody have any idea what I would need to do to make this file 
available to the test?

[1]  https://salsa.debian.org/python-team/packages/python-mnemonic/-/jobs/
6341467#L1138
[2]  https://salsa.debian.org/python-team/packages/python-mnemonic/-/blob/
debian/master/vectors.json?ref_type=heads

-- 
Soren Stoutner
so...@debian.org

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to