Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for TypeError in python 3.7 (python-validators#113)
pytest with throw this error when running in version 3.7: "TypeError: catching classes that do not inherit from BaseException is not allowed" Changing the inheritance from object to Exception will fix this and is compatible back to version 2.7 and should cause no issues. This pytest sample test that will trigger the error in python 3.7: def test_init_with_bad_url(self): with pytest.raises(validators.ValidationFailure): assert True
- Loading branch information