Skip to content
Snippets Groups Projects
  • Georges Racinet's avatar
    09870b83b236
    Tests: force pytest<6 to workaround problem with error.Hint · 09870b83b236
    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`.
    09870b83b236
    History
    Tests: force pytest<6 to workaround problem with error.Hint
    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`.
This project manages its dependencies using pip. Learn more