mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
This commit is contained in:
parent
17ae2ba78f
commit
dde5b94875
39 changed files with 102 additions and 85 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue