Skip to content

Commit 45f9997

Browse files
committed
Fix escape sequence warning
Fix the following warning: tests/conftest.py:121 /workspaces/ethho-datajoint-python/tests/conftest.py:121: DeprecationWarning: invalid escape sequence \_ cur = conn_root.query('SHOW DATABASES LIKE "{}\_%%"'.format(PREFIX))
1 parent 23c01f4 commit 45f9997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def connection_root(connection_root_bare):
118118

119119
# Teardown
120120
conn_root.query("SET FOREIGN_KEY_CHECKS=0")
121-
cur = conn_root.query('SHOW DATABASES LIKE "{}\_%%"'.format(PREFIX))
121+
cur = conn_root.query('SHOW DATABASES LIKE "{}\\_%%"'.format(PREFIX))
122122
for db in cur.fetchall():
123123
conn_root.query("DROP DATABASE `{}`".format(db[0]))
124124
conn_root.query("SET FOREIGN_KEY_CHECKS=1")

0 commit comments

Comments
 (0)