summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Cope <olly@ollycope.com>2018-08-21 10:30:54 +0000
committerOlly Cope <olly@ollycope.com>2018-08-21 10:30:54 +0000
commit83edfab7a96b748685bf8b1c2fb0c6122c857fad (patch)
tree82a56f1239bf92710baf8d419bb2d8b3102873b5
parent0bb86cd8e97ce343bbd9b15afd23e59fd6fcc040 (diff)
downloadyoyo-83edfab7a96b748685bf8b1c2fb0c6122c857fad.tar.gz
tests: skip test that fails on sqlite memory db
-rw-r--r--yoyo/tests/test_cli_script.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yoyo/tests/test_cli_script.py b/yoyo/tests/test_cli_script.py
index 3e96567..bd7f381 100644
--- a/yoyo/tests/test_cli_script.py
+++ b/yoyo/tests/test_cli_script.py
@@ -243,6 +243,8 @@ class TestYoyoScript(TestInteractiveScript):
assert cursor.fetchone()[0] == 1
def test_it_breaks_lock(self, dburi):
+ if dburi.startswith('sqlite'):
+ pytest.skip("Test not supported for sqlite databases")
backend = get_backend(dburi)
backend.execute("INSERT INTO yoyo_lock (locked, ctime, pid) "
"VALUES (1, :now, 1)", {'now': datetime.utcnow()})