diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-02-03 05:37:26 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-02-03 05:37:26 (GMT) |
commit | dde5b94875460e704099593766f4a5bc3279483d (patch) | |
tree | d0c369148bd2d2f723896839aada008ef931ff19 /Lib/sqlite3 | |
parent | 17ae2ba78f96d661bdd1d8e2e8f96016c4aa4a60 (diff) | |
download | cpython-dde5b94875460e704099593766f4a5bc3279483d.zip cpython-dde5b94875460e704099593766f4a5bc3279483d.tar.gz cpython-dde5b94875460e704099593766f4a5bc3279483d.tar.bz2 |
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r-- | Lib/sqlite3/test/types.py | 2 | ||||
-rw-r--r-- | Lib/sqlite3/test/userfunctions.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/sqlite3/test/types.py b/Lib/sqlite3/test/types.py index a275a26..b38c8f4 100644 --- a/Lib/sqlite3/test/types.py +++ b/Lib/sqlite3/test/types.py @@ -231,7 +231,7 @@ class ColNamesTests(unittest.TestCase): sqlite.converters["FOO"] = lambda x: "[%s]" % x sqlite.converters["BAR"] = lambda x: "<%s>" % x - sqlite.converters["EXC"] = lambda x: 5/0 + sqlite.converters["EXC"] = lambda x: 5 // 0 sqlite.converters["B1B1"] = lambda x: "MARKER" def tearDown(self): diff --git a/Lib/sqlite3/test/userfunctions.py b/Lib/sqlite3/test/userfunctions.py index 6a0d5b9..80b6f0c 100644 --- a/Lib/sqlite3/test/userfunctions.py +++ b/Lib/sqlite3/test/userfunctions.py @@ -38,7 +38,7 @@ def func_returnnull(): def func_returnblob(): return buffer("blob") def func_raiseexception(): - 5/0 + 5 // 0 def func_isstring(v): return type(v) is unicode @@ -67,7 +67,7 @@ class AggrNoFinalize: class AggrExceptionInInit: def __init__(self): - 5/0 + 5 // 0 def step(self, x): pass @@ -80,7 +80,7 @@ class AggrExceptionInStep: pass def step(self, x): - 5/0 + 5 // 0 def finalize(self): return 42 @@ -93,7 +93,7 @@ class AggrExceptionInFinalize: pass def finalize(self): - 5/0 + 5 // 0 class AggrCheckType: def __init__(self): |