-
Georges Racinet authored
This solves this problem in tests of testhelpers: # actual error is FilteredRepoLookupError up to 5.9 and will # be InputError in 6.0 (current default head of Mercurial, does not # bear the version yet) > with pytest.raises(error.Hint) as exc_info: E TypeError: expected exception must be a BaseException type, not Hint heptapod/testhelpers/tests/test_repo_wrapper.py:54: TypeError The queston would be whether it'd be reasonable to make `error.Hint` subclass `Exception` (or `BaseException`). Also pytest<6 works for me, but that doesn't mean pytest 6.0.0 was the one to start demanding exceptions to be subclass `BaseException`.
Georges Racinet authoredThis solves this problem in tests of testhelpers: # actual error is FilteredRepoLookupError up to 5.9 and will # be InputError in 6.0 (current default head of Mercurial, does not # bear the version yet) > with pytest.raises(error.Hint) as exc_info: E TypeError: expected exception must be a BaseException type, not Hint heptapod/testhelpers/tests/test_repo_wrapper.py:54: TypeError The queston would be whether it'd be reasonable to make `error.Hint` subclass `Exception` (or `BaseException`). Also pytest<6 works for me, but that doesn't mean pytest 6.0.0 was the one to start demanding exceptions to be subclass `BaseException`.
This project manages its dependencies using pip.
Learn more