From c451cd0a6a5d4ffa8f4bb7f8446cf362c2db3dd8 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 29 Mar 2016 14:24:59 -0700 Subject: [PATCH] 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. --- mediagoblin/tests/test_sql_migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/tests/test_sql_migrations.py b/mediagoblin/tests/test_sql_migrations.py index 7e0569ad..4bdadf1b 100644 --- a/mediagoblin/tests/test_sql_migrations.py +++ b/mediagoblin/tests/test_sql_migrations.py @@ -17,7 +17,7 @@ import six import pytest -pytestmark = pytest.mark.skipif(six.PY3, reason='needs sqlalchemy.migrate') +pytest.importorskip("migrate") import copy -- 2.25.1