remove _compat module

This commit is contained in:
David Lord 2020-04-03 18:33:40 -07:00
parent 1263d3bd14
commit 662c245795
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
20 changed files with 68 additions and 274 deletions

View file

@ -14,7 +14,6 @@ from datetime import timedelta
import pytest
import flask
from flask._compat import PY2
# config keys used for the TestConfig
@ -198,6 +197,4 @@ def test_from_pyfile_weird_encoding(tmpdir, encoding):
app = flask.Flask(__name__)
app.config.from_pyfile(str(f))
value = app.config["TEST_VALUE"]
if PY2:
value = value.decode(encoding)
assert value == u"föö"