Skip to content

Catching too many warnings, tests fail #691

Closed
@ashgillman

Description

@ashgillman

Hi,

I am maintaining a Nix packages for Nibabel, here:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/nibabel/default.nix

I have a few tests fail:

======================================================================
FAIL: nibabel.gifti.tests.test_giftiio.test_read_deprecated
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/khj4yg8583s59wyg1vijj005qvaqiqnk-python3.6-nose-1.3.7/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/tmp/nix-build-python3.6-nibabel-2.3.1.drv-0/nibabel-2.3.1/nibabel/gifti/tests/test_giftiio.py", line 36, in test_read_deprecated
    assert_equal(len(w), 1)
AssertionError: 2 != 1

======================================================================
FAIL: nibabel.gifti.tests.test_parse_gifti_fast.test_parse_dataarrays
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/khj4yg8583s59wyg1vijj005qvaqiqnk-python3.6-nose-1.3.7/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/tmp/nix-build-python3.6-nibabel-2.3.1.drv-0/nibabel-2.3.1/nibabel/gifti/tests/test_parse_gifti_fast.py", line 358, in test_parse_dataarrays
    assert_equal(len(w), 1)
AssertionError: 2 != 1

======================================================================
FAIL: test_load_file_with_wrong_information (nibabel.streamlines.tests.test_trk.TestTRK)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/nix-build-python3.6-nibabel-2.3.1.drv-0/nibabel-2.3.1/nibabel/streamlines/tests/test_trk.py", line 135, in test_load_file_with_wrong_information
    assert_equal(len(w), 1)
AssertionError: 2 != 1

======================================================================
FAIL: test_load_trk_version_1 (nibabel.streamlines.tests.test_trk.TestTRK)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/nix-build-python3.6-nibabel-2.3.1.drv-0/nibabel-2.3.1/nibabel/streamlines/tests/test_trk.py", line 186, in test_load_trk_version_1
    assert_equal(len(w), 1)
AssertionError: 2 != 1

======================================================================
FAIL: nibabel.tests.test_minc1.test_old_namespace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/khj4yg8583s59wyg1vijj005qvaqiqnk-python3.6-nose-1.3.7/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/tmp/nix-build-python3.6-nibabel-2.3.1.drv-0/nibabel-2.3.1/nibabel/tests/test_minc1.py", line 145, in test_old_namespace
    assert_equal(warns.pop(0).category, FutureWarning)
AssertionError: <class 'DeprecationWarning'> != <class 'FutureWarning'>

======================================================================
FAIL: nibabel.tests.test_nifti1.test_extension_io
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/khj4yg8583s59wyg1vijj005qvaqiqnk-python3.6-nose-1.3.7/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/tmp/nix-build-python3.6-nibabel-2.3.1.drv-0/nibabel-2.3.1/nibabel/tests/test_nifti1.py", line 1167, in test_extension_io
    assert_equal(len(warns), 1)
AssertionError: 2 != 1

----------------------------------------------------------------------
Ran 7625 tests in 116.361s

They seem to be all related to catching warnings. Any idea what the issue may be?

Cheers,
Ash

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions