diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-05-22 13:29:15 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-05-22 13:29:15 (GMT) |
commit | 35c6cd09056cc9de9fc6b0d962c2fecb81b94b08 (patch) | |
tree | 00d5a8909c6a3e275a5ca8858117a5d67ec77d3c /Lib | |
parent | cf99b0afb6e6572508582438a6609c6923a6f275 (diff) | |
download | cpython-35c6cd09056cc9de9fc6b0d962c2fecb81b94b08.zip cpython-35c6cd09056cc9de9fc6b0d962c2fecb81b94b08.tar.gz cpython-35c6cd09056cc9de9fc6b0d962c2fecb81b94b08.tar.bz2 |
Walter's last checkin also needs to work on doubles.
* Move new test_byteswap into FPTest.
* Remove extra lines at end of file.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_array.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 6dff37c..758b57c 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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() |