8000 Test failures on Python 3.6.0b2 · Issue #8176 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Test failures on Python 3.6.0b2 #8176
Closed
@charris

Description

@charris

They seem to result from nesting warnings.catch_warnings and suppress_warnings. The problem is new in 3.6 and may be either be a Python bug, or something we are doing in suppress_warnings that we shouldn't.

FAIL: test_deprecations.TestComparisonDeprecations.test_array_richcompare_legacy_weirdness
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charris/.local/lib/python3.6/site-packages/nose-1.3.6-py3.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/core/tests/test_deprecations.py", line 371, in test_array_richcompare_legacy_weirdness
    assert_warns(FutureWarning, lambda: np.arange(2) == "a")
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1723, in assert_warns
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1680, in _assert_warns_context
    raise AssertionError("No warning raised" + name_str)
AssertionError: No warning raised when calling <lambda>

======================================================================
FAIL: test_deprecations.TestComparisonDeprecations.test_none_comparison
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charris/.local/lib/python3.6/site-packages/nose-1.3.6-py3.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/core/tests/test_deprecations.py", line 315, in test_none_comparison
    assert_warns(FutureWarning, operator.eq, np.arange(3), None)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1723, in assert_warns
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1680, in _assert_warns_context
    raise AssertionError("No warning raised" + name_str)
AssertionError: No warning raised when calling eq

======================================================================
FAIL: test_deprecations.TestComparisonDeprecations.test_void_dtype_equality_failures
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charris/.local/lib/python3.6/site-packages/nose-1.3.6-py3.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/core/tests/test_deprecations.py", line 359, in test_void_dtype_equality_failures
    assert_warns(FutureWarning, lambda: struct1 == 1)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1723, in assert_warns
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1680, in _assert_warns_context
    raise AssertionError("No warning raised" + name_str)
AssertionError: No warning raised when calling <lambda>

======================================================================
FAIL: test_deprecations.TestIdentityComparisonDeprecations.test_identity_equality_mismatch
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charris/.local/lib/python3.6/site-packages/nose-1.3.6-py3.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/core/tests/test_deprecations.py", line 415, in test_identity_equality_mismatch
    assert_warns(FutureWarning, np.equal, a, a)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1723, in assert_warns
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1680, in _assert_warns_context
    raise AssertionError("No warning raised" + name_str)
AssertionError: No warning raised when calling equal

======================================================================
FAIL: test_deprecations.TestRankDeprecation.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charris/.local/lib/python3.6/site-packages/nose-1.3.6-py3.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/core/tests/test_deprecations.py", line 272, in test
    assert_warns(np.VisibleDeprecationWarning, np.rank, a)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1723, in assert_warns
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 1680, in _assert_warns_context
    raise AssertionError("No warning raised" + name_str)
AssertionError: No warning raised when calling rank

======================================================================
FAIL: test_utils.test_suppress_warnings_decorate_no_record
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/charris/.local/lib/python3.6/site-packages/nose-1.3.6-py3.6.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/tests/test_utils.py", line 945, in test_suppress_warnings_decorate_no_record
    assert_(len(w) == 1)
  File "/home/charris/Workspace/numpy.git/build/testenv/lib/python3.6/site-packages/numpy/testing/utils.py", line 90, in assert_
    raise AssertionError(smsg)
AssertionError

----------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0