remove _compat module

This commit is contained in:
David Lord 2020-04-03 18:33:40 -07:00
parent 8cf6480f91
commit 24723fa6e8
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öö"