[NumPy-Tickets] [NumPy] #1909: Datetime related build error on Windows
NumPy Trac
numpy-tickets@scipy....
Thu Jul 21 12:46:57 CDT 2011
#1909: Datetime related build error on Windows
------------------------+---------------------------------------------------
Reporter: rgommers | Owner: mwiebe
Type: defect | Status: needs_review
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: devel
Keywords: datetime |
------------------------+---------------------------------------------------
Comment(by rgommers):
Under Python 2.5 the tests are better behaved; localtime lookup simply
fails with an OSError:
{{{
======================================================================
ERROR: test_blasdot.test_dot_3args
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\python25\lib\site-packages\nose-0.11.3-py2.5.egg\nose\case.py",
line 186, in runTest
self.test(*self.arg)
File "C:\Python25\Lib\site-packages\numpy\core\tests\test_blasdot.py",
line 51, in test_dot_3args
np.dot(f,v,r)
TypeError: function takes exactly 2 arguments (3 given)
======================================================================
ERROR: test_blasdot.test_dot_3args_errors
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\python25\lib\site-packages\nose-0.11.3-py2.5.egg\nose\case.py",
line 186, in runTest
self.test(*self.arg)
File "C:\Python25\Lib\site-packages\numpy\core\tests\test_blasdot.py",
line 69, in test_dot_3args_errors
assert_raises(ValueError, np.dot, f, v, r)
File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 1007,
in assert_raises
return nose.tools.assert_raises(*args,**kwargs)
File "Z:\Users\rgommers\.wine\drive_c\Python25\lib\unittest.py", line
320, in failUnlessRaises
callableObj(*args, **kwargs)
TypeError: function takes exactly 2 arguments (3 given)
======================================================================
ERROR: test_datetime_array_str (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\numpy\core\tests\test_datetime.py",
line 514, in test_datetime_array_str
formatter={'datetime': lambda x :
File "C:\Python25\Lib\site-packages\numpy\core\arrayprint.py", line 437,
in array2string
separator, prefix, formatter=formatter)
File "C:\Python25\Lib\site-packages\numpy\core\arrayprint.py", line 242,
in _array2string
'int' : IntegerFormat(data),
File "C:\Python25\Lib\site-packages\numpy\core\arrayprint.py", line 630,
in __init__
len(str(minimum.reduce(data))))
OSError: Failed to use localtime to get a local time
======================================================================
FAIL: test_timedelta_scalar_construction (test_datetime.TestDateTime)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\numpy\core\tests\test_datetime.py",
line 219, in test_timedelta_scalar_construction
assert_equal(str(np.timedelta64(3, 's')), '3 seconds')
File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 313,
in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: '%lld seconds'
DESIRED: '3 seconds'
======================================================================
FAIL: Test basic arithmetic function errors
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\numpy\core\tests\test_numeric.py",
line 329, in test_floating_exceptions
np.power, ftype(2), ftype(2**fi.nexp))
File "C:\Python25\Lib\site-packages\numpy\core\tests\test_numeric.py",
line 270, in assert_raises_fpe
"Type %s did not raise fpe error '%s'." % (ftype, fpeerr))
File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 34, in
assert_
raise AssertionError(msg)
AssertionError: Type <type 'numpy.float64'> did not raise fpe error
'overflow'.
======================================================================
FAIL: test_two_keys_two_vars (test_recfunctions.TestJoinBy2)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python25\Lib\site-
packages\numpy\lib\tests\test_recfunctions.py", line 677, in
test_two_keys_two_vars
assert_equal(test, control)
File "C:\Python25\Lib\site-packages\numpy\ma\testutils.py", line 120, in
assert_equal
return assert_array_equal(actual, desired, err_msg)
File "C:\Python25\Lib\site-packages\numpy\ma\testutils.py", line 193, in
assert_array_equal
header='Arrays are not equal')
File "C:\Python25\Lib\site-packages\numpy\ma\testutils.py", line 186, in
assert_array_compare
verbose=verbose, header=header)
File "C:\Python25\Lib\site-packages\numpy\testing\utils.py", line 635,
in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 100.0%)
x: array([(10, 0, 50, 65, 10, 0), (11, 0, 51, 66, 11, 1),
(10, 1, 52, 67, 12, 2), (11, 1, 53, 68, 13, 3),
(10, 2, 54, 69, 14, 4), (11, 2, 55, 70, 15, 5),...
y: array([(10L, 0L, 50L, 65L, 10L, 0L), (11L, 0L, 51L, 66L, 11L, 1L),
(10L, 1L, 52L, 67L, 12L, 2L), (11L, 1L, 53L, 68L, 13L, 3L),
(10L, 2L, 54L, 69L, 14L, 4L), (11L, 2L, 55L, 70L, 15L, 5L),...
----------------------------------------------------------------------
Ran 3060 tests in 25.198s
FAILED (KNOWNFAIL=8, SKIP=7, errors=3, failures=3)
<nose.result.TextTestResult run=3060 errors=3 failures=3>
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1909#comment:5>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list