diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-01-11 10:12:12 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-01-13 10:57:41 -0500 |
commit | fa6dd376bb24845724287d980a98ea50eb1cfab1 (patch) | |
tree | 91e536c76f4b76b8997b02f5cd5a41de29dc90ef /test/engine/test_logging.py | |
parent | c703b9ce89483b6f44b97d1fbf56f8df8b14305a (diff) | |
download | sqlalchemy-fa6dd376bb24845724287d980a98ea50eb1cfab1.tar.gz |
Support python3.6
Corrects some warnings and adds tox config. Adds DeprecationWarning
to the error category. Large sweep for string literals w/ backslashes
as this is common in docstrings
Co-authored-by: Andrii Soldatenko
Fixes: #3886
Change-Id: Ia7c838dfbbe70b262622ed0803d581edc736e085
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/337
Diffstat (limited to 'test/engine/test_logging.py')
-rw-r--r-- | test/engine/test_logging.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/engine/test_logging.py b/test/engine/test_logging.py index 51ebc5250..e9bc23b41 100644 --- a/test/engine/test_logging.py +++ b/test/engine/test_logging.py @@ -185,11 +185,11 @@ class LogParamsTest(fixtures.TestBase): assert_raises_message( tsa.exc.DBAPIError, r".*'INSERT INTO nonexistent \(data\) values \(:data\)'\] " - "\[parameters: " - "\[{'data': '0'}, {'data': '1'}, {'data': '2'}, " - "{'data': '3'}, {'data': '4'}, {'data': '5'}, " - "{'data': '6'}, {'data': '7'} ... displaying 10 of " - "100 total bound parameter sets ... {'data': '98'}, {'data': '99'}\]", + r"\[parameters: " + r"\[{'data': '0'}, {'data': '1'}, {'data': '2'}, " + r"{'data': '3'}, {'data': '4'}, {'data': '5'}, " + r"{'data': '6'}, {'data': '7'} ... displaying 10 of " + r"100 total bound parameter sets ... {'data': '98'}, {'data': '99'}\]", lambda: self.eng.execute( "INSERT INTO nonexistent (data) values (:data)", [{"data": str(i)} for i in range(100)] @@ -200,11 +200,11 @@ class LogParamsTest(fixtures.TestBase): assert_raises_message( tsa.exc.DBAPIError, r".*INSERT INTO nonexistent \(data\) values " - "\(\?\)'\] \[parameters: \[\('0',\), \('1',\), \('2',\), \('3',\), " - "\('4',\), \('5',\), \('6',\), \('7',\) " - "... displaying " - "10 of 100 total bound parameter sets ... " - "\('98',\), \('99',\)\]", + r"\(\?\)'\] \[parameters: \[\('0',\), \('1',\), \('2',\), \('3',\), " + r"\('4',\), \('5',\), \('6',\), \('7',\) " + r"... displaying " + r"10 of 100 total bound parameter sets ... " + r"\('98',\), \('99',\)\]", lambda: self.eng.execute( "INSERT INTO nonexistent (data) values (?)", [(str(i), ) for i in range(100)] |