Skip to content

Disable nose plugin for Astropy pytest execution to avoid collection crash#588

Closed
Chessing234 wants to merge 1 commit into
SWE-bench:mainfrom
Chessing234:fix/astropy-evaluation-nose
Closed

Disable nose plugin for Astropy pytest execution to avoid collection crash#588
Chessing234 wants to merge 1 commit into
SWE-bench:mainfrom
Chessing234:fix/astropy-evaluation-nose

Conversation

@Chessing234
Copy link
Copy Markdown

Bug:
When running legacy Astropy evaluation tasks (such as astropy__astropy-8707), the evaluation harness crashes during the pytest test collection stage.

Root Cause:
Legacy Astropy versions depend on nose which is deprecated. In modern test runners (like the pytest version used in the SWE-bench evaluation harness), trying to load/parse the nose plugin leads to a severe compatibility and collection crash, preventing the tests from executing.

Why Fix is Correct:
Appending -p no:nose to TEST_ASTROPY_PYTEST disables the deprecated nose plugin under pytest. This prevents the collection conflict and allows pytest to successfully load and execute Astropy tests.

@Chessing234 Chessing234 closed this by deleting the head repository May 29, 2026
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

Successfully merging this pull request may close these issues.

1 participant