summaryrefslogtreecommitdiff
path: root/Lib/test/test_struct.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-01-08 19:04:16 +0000
committerSenthil Kumaran <orsenthil@gmail.com>2010-01-08 19:04:16 +0000
commitce8e33a095030e7af94f58f9da196b240bdf0476 (patch)
treeb0ba50cbb6e85c6be6f6e6a870e4232be50a0f9c /Lib/test/test_struct.py
parent3ddc435af6873c6304058d7bcbcb19ee4fba7781 (diff)
downloadcpython-git-ce8e33a095030e7af94f58f9da196b240bdf0476.tar.gz
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r--Lib/test/test_struct.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py
index 76a29cde5f..556a5764eb 100644
--- a/Lib/test/test_struct.py
+++ b/Lib/test/test_struct.py
@@ -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()