Reverting the Revision: 77368. I committed Flox's big patch for tests by

mistake. ( It may come in for sure tough)
This commit is contained in:
Senthil Kumaran 2010-01-08 19:04:16 +00:00
parent 3ddc435af6
commit ce8e33a095
107 changed files with 436 additions and 794 deletions

View file

@ -471,7 +471,7 @@ class StructTest(unittest.TestCase):
def test_bool(self):
for prefix in tuple("<>!=")+('',):
false = (), [], [], '', 0
true = [1], 'test', 5, -1, 0xffffffffL+1, 0xffffffff//2
true = [1], 'test', 5, -1, 0xffffffffL+1, 0xffffffff/2
falseFormat = prefix + '?' * len(false)
packedFalse = struct.pack(falseFormat, *false)
@ -507,11 +507,7 @@ class StructTest(unittest.TestCase):
def test_main():
with warnings.catch_warnings():
# Silence Py3k warnings
warnings.filterwarnings("ignore", "buffer.. not supported",
DeprecationWarning)
run_unittest(StructTest)
run_unittest(StructTest)
if __name__ == '__main__':
test_main()