From: Mike Bayer Date: Thu, 3 Mar 2016 15:26:29 +0000 (-0500) Subject: - use hex idents for DB names X-Git-Tag: rel_0_8_5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69503061ce6448cc81ff008be7a5d51f2734581c;p=thirdparty%2Fsqlalchemy%2Falembic.git - use hex idents for DB names --- diff --git a/alembic/testing/plugin/pytestplugin.py b/alembic/testing/plugin/pytestplugin.py index 78194a32..9a729b6d 100644 --- a/alembic/testing/plugin/pytestplugin.py +++ b/alembic/testing/plugin/pytestplugin.py @@ -61,7 +61,7 @@ def pytest_sessionstart(session): plugin_base.post_begin() if has_xdist: - _follower_count = itertools.count(1) + import uuid def pytest_configure_node(node): # the master for each node fills slaveinput dictionary @@ -69,7 +69,7 @@ if has_xdist: plugin_base.memoize_important_follower_config(node.slaveinput) - node.slaveinput["follower_ident"] = "test_%s" % next(_follower_count) + node.slaveinput["follower_ident"] = "test_%s" % uuid.uuid4().hex[0:12] from alembic.testing import provision provision.create_follower_db(node.slaveinput["follower_ident"])