]> granicus.if.org Git - python/commitdiff
Walter's last checkin also needs to work on doubles.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 22 May 2003 13:29:15 +0000 (13:29 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 22 May 2003 13:29:15 +0000 (13:29 +0000)
 * Move new test_byteswap into FPTest.
 * Remove extra lines at end of file.

Lib/test/test_array.py

index 6dff37c1cb5584492cb55d3594f31b7f6485b4d1..758b57c18f112b60fc3ba6eaf540af1b45d73cd8 100755 (executable)
@@ -844,10 +844,6 @@ class FPTest(NumberTest):
     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 @@ class FloatTest(FPTest):
             b.byteswap()
             self.assertEqual(a, b)
 
+class FloatTest(FPTest):
+    typecode = 'f'
+    minitemsize = 4
 tests.append(FloatTest)
 
 class DoubleTest(FPTest):
@@ -876,6 +875,3 @@ def test_main():
 
 if __name__=="__main__":
     test_main()
-
-
-#main()