tests: importorskip migration tests on "migrate" rather than on Python 3
Previously we assumed we wouldn't run migration tests if we're on Python 3, but now that we support sqlalchemy-migrate with Python 3, switch to checking based on "migrate" importability. * mediagoblin/tests/test_sql_migrations.py: Update test skipping to rely on "migrate" module presence rather than Python 3 check.
This commit is contained in:
parent
fbca3074f7
commit
c451cd0a6a
@ -17,7 +17,7 @@
|
|||||||
import six
|
import six
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
pytestmark = pytest.mark.skipif(six.PY3, reason='needs sqlalchemy.migrate')
|
pytest.importorskip("migrate")
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user