Skip to content

TST: two tests from astropy/io/registry/tests/test_registries.py that cannot be run in isolation #17558

Closed

Description

@neutrinoceros

This test cannot be run on its own at the moment:

$ pytest astropy/io/registry/tests/test_registries.py::TestUnifiedOutputRegistry::test_delay_doc_updates
...
FAILED astropy/io/registry/tests/test_registries.py::TestUnifiedOutputRegistry::test_delay_doc_updates - UnboundLocalError: cannot access local variable 'ihd' where it is not associated with a value

this test actually contains some logic to workaround test pollution, but it turns out it really depends on test pollution to run properly.

Activity

  1. added
    Affects-devPRs and issues that do not impact an existing Astropy release
    on Dec 18, 2024
  2. neutrinoceros commented on Dec 18, 2024

    @neutrinoceros
    ContributorAuthor

    This problem is also present in
    astropy/io/registry/tests/test_registries.py::TestUnifiedInputRegistry::test_delay_doc_updates

  3. changed the title [-]TST: `astropy/io/registry/tests/test_registries.py::TestUnifiedOutputRegistry` cannot be run in isolation[/-] [+]TST: two tests from `astropy/io/registry/tests/test_registries.py` that cannot be run in isolation[/+] on Dec 18, 2024
  4. added and removed
    Affects-devPRs and issues that do not impact an existing Astropy release
    on Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions