Skip to content

Conversation

@KostaIlic2
Copy link
Contributor

This is a workaround for incorrectly skipped documentation tests. Incorrect skipping is due to the issue described in #251

I commented out the lines that were causing the skipping, and introduced an alternative implementation that is not elegant but works.

So we don't lose test coverage due to a bug in a dependency.

What testing has been done?

I ran documentation tests with version of numpy that these tests should work with. Before the change I noticed 4 skipped tests, after the change there were no skipped tests.

@KostaIlic2 KostaIlic2 changed the title Users/kosta/workarounds for tech debt 251 take 3 Introduced workarounds for technical debt 251 Jan 10, 2026
@KostaIlic2 KostaIlic2 marked this pull request as ready for review January 10, 2026 04:09
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need/want to run doctests through Sphinx. I assume you added this to enable the .. testsetup:: directive and that pytest supports it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkeryan, I suggest we look together at the root cause and a fix I'd like to propose for that before spending more time on this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this issue only affect run_unit_tests_oldest_deps.yml? If so, I think disabling doctests on the command line in that workflow file would be a less obtrusive workaround. If --no-doctest-modules doesn't work, try -p no:doctest.

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.

2 participants