Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Pytest warning for pytest.raises change (#532)
Fix these warnings seen on a test run since upgrading Pytest: ``` tests/testapp/test_cache.py::MySQLCacheTests::test_get_or_set_version /Users/chainz/Documents/Projects/django-mysql/tests/testapp/test_cache.py:783: PytestDeprecationWarning: The 'message' parameter is deprecated. (did you mean to use `match='some regex'` to check the exception message?) Please comment on pytest-dev/pytest#3974 if you have concerns about removal of this parameter. with pytest.raises(TypeError, message=msg): /Users/chainz/Documents/Projects/django-mysql/tests/testapp/test_cache.py:786: PytestDeprecationWarning: The 'message' parameter is deprecated. (did you mean to use `match='some regex'` to check the exception message?) Please comment on pytest-dev/pytest#3974 if you have concerns about removal of this parameter. with pytest.raises(TypeError, message=msg): tests/testapp/test_models.py::FoundRowsTests::test_it_doesnt_work_with_iterator /Users/chainz/Documents/Projects/django-mysql/tests/testapp/test_models.py:365: PytestDeprecationWarning: The 'message' parameter is deprecated. (did you mean to use `match='some regex'` to check the exception message?) Please comment on pytest-dev/pytest#3974 if you have concerns about removal of this parameter. with pytest.raises(ValueError, message="doesn't work with iterator()"): ```
- Loading branch information