diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-05 19:05:05 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-05 19:05:05 (GMT) |
commit | a3acea3e07dba03a22dc35ca17ad83baa82e3729 (patch) | |
tree | 2a2e4f25b0ea350f0d828ce09b86f6dfbd214606 /Lib/sqlite3/test/dbapi.py | |
parent | 342fd18f5369863dfa0c44bc1f57476fdde587aa (diff) | |
download | cpython-a3acea3e07dba03a22dc35ca17ad83baa82e3729.zip cpython-a3acea3e07dba03a22dc35ca17ad83baa82e3729.tar.gz cpython-a3acea3e07dba03a22dc35ca17ad83baa82e3729.tar.bz2 |
Issue #22340: Fix Python 3 warnings in Python 2 tests
Diffstat (limited to 'Lib/sqlite3/test/dbapi.py')
-rw-r--r-- | Lib/sqlite3/test/dbapi.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py index c356d47..615ebf5 100644 --- a/Lib/sqlite3/test/dbapi.py +++ b/Lib/sqlite3/test/dbapi.py @@ -24,6 +24,7 @@ import unittest import sys import sqlite3 as sqlite +from test import test_support try: import threading except ImportError: @@ -653,7 +654,8 @@ class ConstructorTests(unittest.TestCase): ts = sqlite.TimestampFromTicks(42) def CheckBinary(self): - b = sqlite.Binary(chr(0) + "'") + with test_support.check_py3k_warnings(): + b = sqlite.Binary(chr(0) + "'") class ExtensionTests(unittest.TestCase): def CheckScriptStringSql(self): |