Example #1
0
 def test_CheckBinary(self):
     with (test_support.check_warnings() if sys.version_info[0] >= 3 else
           test_support.check_py3k_warnings()):
         b = sqlite.Binary(
             chr(0).encode() +
             b"'" if sys.version_info[0] >= 3 else chr(0) + b"'")
Example #2
0
 def test_CheckBinary(self):
     with test_support.check_py3k_warnings():
         b = sqlite.Binary(chr(0) + "'")