diff Lib/test/test_array.py @ 29205:56ffca02c824 legacy-trunk

Walter's last checkin also needs to work on doubles. * Move new test_byteswap into FPTest. * Remove extra lines at end of file.
author Neal Norwitz <nnorwitz@gmail.com>
date Thu, 22 May 2003 13:29:15 +0000
parents b1f643690a88
children d8c8fe0c73ed
line wrap: on
line diff
--- a/Lib/test/test_array.py	Thu May 22 13:15:31 2003 +0000
+++ b/Lib/test/test_array.py	Thu May 22 13:29:15 2003 +0000
@@ -844,10 +844,6 @@
     def assertEntryEqual(self, entry1, entry2):
         self.assertAlmostEqual(entry1, entry2)
 
-class FloatTest(FPTest):
-    typecode = 'f'
-    minitemsize = 4
-
     def test_byteswap(self):
         a = array.array(self.typecode, self.example)
         self.assertRaises(TypeError, a.byteswap, 42)
@@ -864,6 +860,9 @@
             b.byteswap()
             self.assertEqual(a, b)
 
+class FloatTest(FPTest):
+    typecode = 'f'
+    minitemsize = 4
 tests.append(FloatTest)
 
 class DoubleTest(FPTest):
@@ -876,6 +875,3 @@
 
 if __name__=="__main__":
     test_main()
-
-
-#main()