Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent Failure of a Particular Unit test #104

Open
markpbaggett opened this issue Feb 20, 2025 · 0 comments
Open

Intermittent Failure of a Particular Unit test #104

markpbaggett opened this issue Feb 20, 2025 · 0 comments
Assignees

Comments

@markpbaggett
Copy link
Collaborator

Today, I've noticed the same unit test failing intermittently. Usually, rerunning makes things pass, but I wanted to bring this up in case it was due to a timeout or other 5xx issue and maybe we should find a different fixture for the test:

(venv) ➜  iiif git:(issue_101) ✗ python -m unittest discover -s tests
./Users/mark.baggett/code/iiif/venv/lib/python3.13/site-packages/iiif_prezi3/base.py:60: DeprecationWarning: `copy_on_model_validation` should be a string: 'deep', 'shallow' or 'none'
  super().__setattr__(key, value)
..........E............................................/Users/mark.baggett/code/iiif/venv/lib/python3.13/site-packages/iiif2/web.py:32: ResourceWarning: unclosed file <_io.BufferedReader name='media/img-8664_202009'>
  w, h = Image.open(path).size
ResourceWarning: Enable tracemalloc to get the object allocation traceback
..........
======================================================================
ERROR: test_space_in_filename (test_cantaloupe_resolver.TestCantaloupeResolver.test_space_in_filename)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mark.baggett/code/iiif/tests/test_cantaloupe_resolver.py", line 89, in test_space_in_filename
    cid = cantaloupe_resolver("drug-use-and-abuse-collection-of-pamphlets")
  File "/Users/mark.baggett/code/iiif/iiify/resolver.py", line 1059, in cantaloupe_resolver
    raise ValueError("No such valid Archive.org item identifier: %s" \
                    % identifier)
ValueError: No such valid Archive.org item identifier: drug-use-and-abuse-collection-of-pamphlets

----------------------------------------------------------------------
Ran 66 tests in 46.337s

FAILED (errors=1)

@markpbaggett markpbaggett changed the title Intermittent Failure of a Particular Unittest Intermittent Failure of a Particular Unit test Feb 20, 2025
@glenrobson glenrobson self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants