Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: One more test error for =pynwb-2.5.0AssertionError: UserWarning not triggered #1800

Closed
3 tasks done
TheChymera opened this issue Dec 12, 2023 · 1 comment
Closed
3 tasks done
Assignees
Labels
category: bug errors in the code or code behavior priority: medium non-critical problem and/or affecting only a small set of NWB users topic: testing issues related to testing

Comments

@TheChymera
Copy link

TheChymera commented Dec 12, 2023

What happened?

Full build log including tests → https://ppb.chymera.eu/0e5d26.log

Here is the traceback section:

self = <tests.unit.test_file.TestNoCacheSpec testMethod=test_simple>

    def test_simple(self):
        nwbfile = NWBFile(' ', ' ',
                          datetime.now(tzlocal()),
                          file_create_date=datetime.now(tzlocal()),
                          institution='University of California, San Francisco',
                          lab='Chang Lab')
        with NWBHDF5IO(self.path, 'w') as io:
            io.write(nwbfile, cache_spec=False)

>       with self.assertWarnsWith(UserWarning, "No cached namespaces found in %s" % self.path):
E       AssertionError: UserWarning not triggered

io         = <pynwb.NWBHDF5IO object at 0x7fde45a5d550>
nwbfile    = root pynwb.file.NWBFile at 0x140592628926864
Fields:
  file_create_date: [datetime.datetime(2023, 12, 11, 16, 7, 0, 179648, tzinfo=tzoffset(None, -18000))]
  identifier:
  institution: University of California, San Francisco
  lab: Chang Lab
  session_description:
  session_start_time: 2023-12-11 16:07:00.179548-05:00
  timestamps_reference_time: 2023-12-11 16:07:00.179548-05:00

reader     = <pynwb.NWBHDF5IO object at 0x7fde45ae0b90>
self       = <tests.unit.test_file.TestNoCacheSpec testMethod=test_simple>

tests/unit/test_file.py:566: AssertionError

Steps to Reproduce

python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_bad_ns --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_core --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_extension --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_extension_pass_ns --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_hdmf_common --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_ignore --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_invalid --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_list_namespaces_core --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_list_namespaces_extension --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_no_cache --deselect tests/validation/test_validate.py::TestValidateCLI::test_validate_file_no_cache_bad_ns --ignore tests/read_dandi/test_read_dandi.py

Traceback

No response

Operating System

Linux

Python Executable

Python

Python Version

3.11

Package Versions

No response

Code of Conduct

@rly rly added category: bug errors in the code or code behavior priority: medium non-critical problem and/or affecting only a small set of NWB users topic: testing issues related to testing labels Dec 14, 2023
@rly rly self-assigned this Dec 14, 2023
@rly
Copy link
Contributor

rly commented Dec 14, 2023

This test failure was introduced when we recently released a new version of HDMF. The test was fixed in #1778. However, the fix has not yet been released. I will prepare a release.

@rly rly closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug errors in the code or code behavior priority: medium non-critical problem and/or affecting only a small set of NWB users topic: testing issues related to testing
Projects
None yet
Development

No branches or pull requests

2 participants