forked from orbit-oss/flask
Fixes for PEP451 import loaders and pytest 5.x
- pytest 5.x drops python2 compatibility and therefore only implements PEP 451 - pytest 5.x made the repr of `ExcInfo` less confusing (fixed tests depending on the old format)
This commit is contained in:
parent
b9c2267272
commit
a5ecdfa7a5
6 changed files with 57 additions and 25 deletions
|
|
@ -12,7 +12,7 @@ def test_get_close_db(app):
|
|||
with pytest.raises(sqlite3.ProgrammingError) as e:
|
||||
db.execute('SELECT 1')
|
||||
|
||||
assert 'closed' in str(e)
|
||||
assert 'closed' in str(e.value)
|
||||
|
||||
|
||||
def test_init_db_command(runner, monkeypatch):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue