Skip to content

fix endless doctest despite no example#1591

Merged
Adel-Moumen merged 1 commit intodevelopfrom
doctest-url-fix
Oct 4, 2022
Merged

fix endless doctest despite no example#1591
Adel-Moumen merged 1 commit intodevelopfrom
doctest-url-fix

Conversation

@anautsch
Copy link
Collaborator

@anautsch anautsch commented Oct 4, 2022

A recent testing for a PR ran endlessly, and was cancelled after 6h.
see: https://github.com/speechbrain/speechbrain/actions/runs/3175083475/jobs/5182679440

A second re-run took 45min, then I cancelled that workflow, too.
After running doctests locally, it came clear that

pytest --doctest-modules speechbrain/utils/check_url.py

caused the issue - BUT - this file does not have any doctest examples !!

When I found this
pytest-dev/pytest#2188 (comment)

I checked the file again for anything that could potentially knock off the doctest-module collection and found the function

def test_links

-> does it work to simply rename this one?
It did...

Copy link
Collaborator

@Adel-Moumen Adel-Moumen left a comment

Choose a reason for hiding this comment

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

lgtm.

@Adel-Moumen Adel-Moumen merged commit 43774cc into develop Oct 4, 2022
@Adel-Moumen Adel-Moumen deleted the doctest-url-fix branch October 4, 2022 09:32
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