tests: importorskip migration tests on "migrate" rather than on Python 3
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 29 Mar 2016 21:24:59 +0000 (14:24 -0700)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 29 Mar 2016 21:27:07 +0000 (14:27 -0700)
commitc451cd0a6a5d4ffa8f4bb7f8446cf362c2db3dd8
tree4c9495a839e37e3b3c7190385ebd5cd4026cab50
parentfbca3074f70e2ee1acd3684339798375a40e5483
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