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:
Christopher Allan Webber 2016-03-29 14:24:59 -07:00
parent fbca3074f7
commit c451cd0a6a

View File

@ -17,7 +17,7 @@
import six
import pytest
pytestmark = pytest.mark.skipif(six.PY3, reason='needs sqlalchemy.migrate')
pytest.importorskip("migrate")
import copy