Skip to content

Instantly share code, notes, and snippets.

@certik
Created July 29, 2012 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save certik/3195520 to your computer and use it in GitHub Desktop.
Save certik/3195520 to your computer and use it in GitHub Desktop.
Python 3.3 failures
>>> import numpy
>>> numpy.test()
Running unit tests for numpy
NumPy version 1.8.0.dev-Unknown
NumPy is installed in /home/ondrej/py33/lib/python3.3/site-packages/numpy
Python version 3.3.0b1 (default, Jul 27 2012, 10:55:25) [GCC 4.6.3]
nose version 1.1.2
/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/core.py:247: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/usage.txt' mode='r' encoding='UTF-8'>
os.path.dirname(__file__), 'usage.txt'), 'r').read()
..............S.........S..................................................................................................................................................................................................................................................................................S.............................................F.FFFF..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K........................................E.E..............................................................................................................................................SSS..........................................................................................K...................................................E................................................................................................................................................................K....................................................................................................K......................K....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S........................................................................................................................................................................................................................................E.................................................................................................................................................................................................................................................................................................................................................................................................................................../home/ondrej/repos/python-3.3/xx/lib/python3.3/zipfile.py:1513: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmp2hwmw4.npz'>
self.fp = None
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K....................................................
======================================================================
ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1, 1000020.0000000099], [0, nan, 1000000.0])
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1245, in tst_isclose_allclose
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/numeric.py", line 1987, in allclose
return all(less_equal(abs(x-y), atol + rtol * abs(y)))
RuntimeWarning: invalid value encountered in absolute
======================================================================
ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan])
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_numeric.py", line 1245, in tst_isclose_allclose
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/numeric.py", line 1987, in allclose
return all(less_equal(abs(x-y), atol + rtol * abs(y)))
RuntimeWarning: invalid value encountered in absolute
======================================================================
ERROR: Ticket #16
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_regression.py", line 41, in test_pickle_transposed
b = pickle.load(f)
EOFError
======================================================================
ERROR: Failure: ValueError (can't handle version 187 of numpy.ndarray pickle)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/failure.py", line 37, in runTest
raise self.exc_class(self.exc_val).with_traceback(self.tb)
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/loader.py", line 232, in generate
for test in g():
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/lib/tests/test_format.py", line 429, in test_roundtrip
arr2 = roundtrip(arr)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/lib/tests/test_format.py", line 420, in roundtrip
arr2 = format.read_array(f2)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/lib/format.py", line 449, in read_array
array = pickle.load(fp)
ValueError: can't handle version 187 of numpy.ndarray pickle
======================================================================
FAIL: test_multiarray.TestNewBufferProtocol.test_export_discontiguous
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_multiarray.py", line 2663, in test_export_discontiguous
assert_equal(y.suboffsets, None)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/testing/utils.py", line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ()
DESIRED: None
======================================================================
FAIL: test_multiarray.TestNewBufferProtocol.test_export_record
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_multiarray.py", line 2696, in test_export_record
assert_equal(y.suboffsets, None)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/testing/utils.py", line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ()
DESIRED: None
======================================================================
FAIL: test_multiarray.TestNewBufferProtocol.test_export_simple_1d
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_multiarray.py", line 2643, in test_export_simple_1d
assert_equal(y.suboffsets, None)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/testing/utils.py", line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ()
DESIRED: None
======================================================================
FAIL: test_multiarray.TestNewBufferProtocol.test_export_simple_nd
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_multiarray.py", line 2653, in test_export_simple_nd
assert_equal(y.suboffsets, None)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/testing/utils.py", line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ()
DESIRED: None
======================================================================
FAIL: test_multiarray.TestNewBufferProtocol.test_export_subarray
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ondrej/py33/lib/python3.3/site-packages/nose-1.1.2-py3.3.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/core/tests/test_multiarray.py", line 2710, in test_export_subarray
assert_equal(y.shape, None)
File "/home/ondrej/py33/lib/python3.3/site-packages/numpy/testing/utils.py", line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ()
DESIRED: None
----------------------------------------------------------------------
Ran 4776 tests in 22.722s
FAILED (KNOWNFAIL=6, SKIP=7, errors=4, failures=5)
<nose.result.TextTestResult run=4776 errors=4 failures=5>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment