summaryrefslogtreecommitdiff
path: root/tests/test_version_traversal.py
diff options
context:
space:
mode:
authorStefan Tjarks <66305+stj@users.noreply.github.com>2018-11-21 22:08:56 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2018-11-27 22:48:51 -0500
commite3c5fc317ed306890c65b28c7ab75aa806cd2633 (patch)
tree4588d7ec30e7a2c79a19170fb5397ae18ac2e663 /tests/test_version_traversal.py
parent12545d3d293d7b32aaef011c7605c3d640e4ac4f (diff)
downloadalembic-e3c5fc317ed306890c65b28c7ab75aa806cd2633.tar.gz
Vendor python3 formatargspec, import from collections.abc
Resolved remaining Python 3 deprecation warnings, covering the use of inspect.formatargspec() with a vendored version copied from the Python standard library, importing collections.abc above Python 3.3 when testing against abstract base classes, fixed one occurrence of log.warn(), as well as a few invalid escape sequences. Add DeprecationWarning to the test suite as an error raise as has been the case within SQLAlchemy for some time now. Fixes: #507 Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: I121121b3d2dd90e6f3c9b16dec2fc80b9699c400 Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/85
Diffstat (limited to 'tests/test_version_traversal.py')
-rw-r--r--tests/test_version_traversal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_version_traversal.py b/tests/test_version_traversal.py
index 08c737f..f69a9bd 100644
--- a/tests/test_version_traversal.py
+++ b/tests/test_version_traversal.py
@@ -183,7 +183,7 @@ class RevisionPathTest(MigrationTest):
assert_raises_message(
util.CommandError,
r"Destination %s is not a valid downgrade "
- "target from current head\(s\)" % self.b.revision[0:3],
+ r"target from current head\(s\)" % self.b.revision[0:3],
self.env._downgrade_revs, self.b.revision[0:3], None
)
@@ -192,7 +192,7 @@ class RevisionPathTest(MigrationTest):
assert_raises_message(
util.CommandError,
r"Destination %s is not a valid downgrade "
- "target from current head\(s\)" % self.c.revision[0:4],
+ r"target from current head\(s\)" % self.c.revision[0:4],
self.env._downgrade_revs, self.c.revision[0:4], self.b.revision
)