-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply
filterwarnings = error
to tests and update
This applies the error filter to force test failures on warnings, and does the necessary cleanup. Primarily, that means identifying the two classes of `ignore:` rules which are necessary to handle cases outside of this library's control. Secondarily, it forces the deprecation of the older url_for field specification syntax, which cannot be supported cleanly. Since this was deprecated in the last release, it is presumably safe to remove it, but the change is still noted as breaking in the changelog.
- Loading branch information
Showing
7 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import pytest | ||
import flask | ||
from distutils.version import LooseVersion | ||
from packaging.version import Version | ||
|
||
|
||
flask_version = LooseVersion(flask.__version__) | ||
flask_version = Version(flask.__version__) | ||
flask_1_req = pytest.mark.skipif( | ||
flask_version < LooseVersion("0.11"), reason="flask 0.11 or higher required" | ||
flask_version < Version("0.11"), reason="flask 0.11 or higher required" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters