patch-Test_test_py 859 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-Test_test_py,v 1.1 2003/10/21 19:51:50 sturm Exp $
  2. --- Test/test.py.orig 2003-08-07 03:24:11.000000000 +1000
  3. +++ Test/test.py 2003-08-12 02:53:26.000000000 +1000
  4. @@ -1,3 +1,7 @@
  5. +import sys
  6. +import distutils.util
  7. +sys.path.append("../lib.%s-%s" % (distutils.util.get_platform(), sys.version[0:3]))
  8. +
  9. import unittest, types, math
  10. import Numeric
  11. @@ -163,7 +167,9 @@ class BasicNumericTestCase (unittest.Tes
  12. assert eq(x - y, [0, 0, 3, 3, 6, 3])
  13. assert eq(x * y, [1, 4, 0, 8, 10, 18])
  14. assert eq(y / x, [1, 1, 0, 0, 0, 0])
  15. - assert eq(y // x, [1, 1, 0, 0, 0, 0])
  16. + # We can't test floor division with python 2.1
  17. + # (this unit test didn't check it properly anyway)
  18. + #assert eq(y // x, [1, 1, 0, 0, 0, 0])
  19. assert eq(x**2, [1, 4, 9, 16, 25, 36])
  20. def testComparisons (self):