Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented May 6, 2020

Mercurial is broken (read: crashing with bus error) on SPARC.
Nevertheless, many packages need setuptools_scm even if we never ever
use Mercurial checkouts. This patch makes it possible to run the test
suite successfully when Mercurial is not available on the system.



with warnings.catch_warnings():
warnings.filterwarnings('ignore')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that I hate this but I have no clue how to otherwise make pytest not crash about has_command() throwing a warning. Nor that I have any clue why a command returning a bool would issue a warning that it returns False.

Mercurial is broken (read: crashing with bus error) on SPARC.
Nevertheless, many packages need setuptools_scm even if we never ever
use Mercurial checkouts.  This patch makes it possible to run the test
suite successfully when Mercurial is not available on the system.
@RonnyPfannschmidt
Copy link
Contributor

Thanks, I will merge as is and refine later

If you like you can take a look at using xfail for this

@RonnyPfannschmidt RonnyPfannschmidt merged commit 2732199 into pypa:master May 7, 2020
@mgorny mgorny deleted the hg-skip branch May 7, 2020 06:26
@mgorny
Copy link
Contributor Author

mgorny commented May 7, 2020

If you like you can take a look at using xfail for this

I don't think xfail is correct here. The way I understand it, xfail means that the package or tests are broken. For unsatisfied dependency (which is a clear cut case of 'we cannot test this properly') I think skip is more correct.

@mgorny
Copy link
Contributor Author

mgorny commented May 7, 2020

By the way, I can look at doing something similar for git, if you're interested.

@RonnyPfannschmidt
Copy link
Contributor

i am, if you like you can also take a look at enhancing the error message we give when the detected scm is not installed

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