We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
========================================================================================== FAILURES =========================================================================================== _____________________________________________________________________________ TestTableOpening.test_opening_files _____________________________________________________________________________ self = <test_samples.TestTableOpening object at 0x90bc4cc40>, filepath = 'examples/arrays/array_samples.h5', nodepath = 'array_b' def check_node_open(self, filepath, nodepath): """Open file get access to a node and read all cells.""" try: > leaf_model = get_leaf_model_with_assert(self, filepath, nodepath) tests/test_samples.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_samples.py:51: in get_leaf_model_with_assert assert_path(test, [filename] + leaf_path) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test = <test_samples.TestTableOpening object at 0x90bc4cc40>, path = ['array_samples.h5', 'array_b'] def assert_path(test, path): """Activate and check that node at given path exist. If the last node is a leaf then subwindow will be created. """ if not path: return index = get_index(test.model, path[0]) > assert index is not None E assert None is not None tests/test_samples.py:37: AssertionError During handling of the above exception, another exception occurred: self = <test_samples.TestTableOpening object at 0x90bc4cc40> def test_opening_files(self): """Generate tests for given data files.""" for filepath, nodes in self.TEST_NODES.items(): for node in nodes: > self.check_node_open(filepath, node) tests/test_samples.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_samples.py:200: in check_node_open self.vtapp.fileClose() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <vitables.vtapp.VTApp object at 0x90e72af70>, current = <PyQt5.QtCore.QModelIndex object at 0x941e223c0> def fileClose(self, current=False): """ Close a file. First of all this method finds out which database has to be closed. Afterwards all views belonging to that database are closed, then the object tree is removed from the databases tree and, finally, the database is closed. :Parameter current: the index in the databases tree of a node living in the file being closed """ if current is False: current = self.gui.dbs_tree_view.currentIndex() node = self.gui.dbs_tree_model.nodeFromIndex(current) filepath = node.filepath # The position of this database in the tree view last_row = len(self.gui.dbs_tree_model.root.children) - 1 for row, child in enumerate(self.gui.dbs_tree_model.root.children): if child.filepath == filepath: position = row break # If some leaf of this database has an open view then close it for window in self.gui.workspace.subWindowList(): if window.dbt_leaf.filepath == filepath: window.close() # The tree model closes the file and delete its root item # from the tree view self.gui.dbs_tree_model.closeDBDoc(filepath) # The root node immediately below the closed node becomes selected > if position <= last_row: E UnboundLocalError: local variable 'position' referenced before assignment vitables/vtapp.py:684: UnboundLocalError ------------------------------------------------------------------------------------ Captured Qt messages ------------------------------------------------------------------------------------- QtWarningMsg: Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed ------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------- --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/logging/__init__.py", line 1086, in emit stream.write(msg + self.terminator) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/logger.py", line 104, in write current_color = self.textColor() RuntimeError: wrapped C/C++ object of type Logger has been deleted Call stack: File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module> raise SystemExit(pytest.console_main()) File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 189, in console_main code = main() File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 166, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py", line 94, in pytest_runtest_protocol self.runner.pytest_runtest_protocol(item, nextitem) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 133, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py", line 138, in call_and_report call = call_runtest_hook(item, when, **kwds) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 261, in call_runtest_hook return CallInfo.from_call( File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 262, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1788, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/tests/test_samples.py", line 188, in test_opening_files self.check_node_open(filepath, node) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/tests/test_samples.py", line 193, in check_node_open leaf_model = get_leaf_model_with_assert(self, filepath, nodepath) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/tests/test_samples.py", line 50, in get_leaf_model_with_assert test.vtapp.fileOpen(filepath) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/vtapp.py", line 642, in fileOpen if self.gui.dbs_tree_model.openDBDoc(filepath, mode, position): File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/h5db/dbstreemodel.py", line 227, in openDBDoc if self.checkOpening(filepath): File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/h5db/dbstreemodel.py", line 204, in checkOpening log.error(error) Message: 'Opening cancelled: file examples/arrays/array_samples.h5 has not HDF5 format.' Arguments: () --- Logging error --- Traceback (most recent call last): File "/usr/local/lib/python3.9/logging/__init__.py", line 1086, in emit stream.write(msg + self.terminator) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/logger.py", line 104, in write current_color = self.textColor() RuntimeError: wrapped C/C++ object of type Logger has been deleted Call stack: File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module> raise SystemExit(pytest.console_main()) File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 189, in console_main code = main() File "/usr/local/lib/python3.9/site-packages/_pytest/config/__init__.py", line 166, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 317, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 270, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 324, in _main config.hook.pytest_runtestloop(session=session) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/main.py", line 349, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py", line 94, in pytest_runtest_protocol self.runner.pytest_runtest_protocol(item, nextitem) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 133, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py", line 138, in call_and_report call = call_runtest_hook(item, when, **kwds) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 261, in call_runtest_hook return CallInfo.from_call( File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 341, in from_call result: Optional[TResult] = func() File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 262, in <lambda> lambda: ihook(item=item, **kwds), when=when, reraise=reraise File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/runner.py", line 169, in pytest_runtest_call item.runtest() File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 1788, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 433, in __call__ return self._hookexec(self.name, self._hookimpls, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 112, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 80, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/_pytest/python.py", line 194, in pytest_pyfunc_call result = testfunction(**testargs) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/tests/test_samples.py", line 188, in test_opening_files self.check_node_open(filepath, node) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/tests/test_samples.py", line 193, in check_node_open leaf_model = get_leaf_model_with_assert(self, filepath, nodepath) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/tests/test_samples.py", line 50, in get_leaf_model_with_assert test.vtapp.fileOpen(filepath) File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/vtapp.py", line 642, in fileOpen if self.gui.dbs_tree_model.openDBDoc(filepath, mode, position): File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/h5db/dbstreemodel.py", line 227, in openDBDoc if self.checkOpening(filepath): File "/usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/h5db/dbstreemodel.py", line 204, in checkOpening log.error(error) Message: 'Opening cancelled: file examples/arrays/array_samples.h5 has not HDF5 format.' Arguments: () -------------------------------------------------------------------------------------- Captured log call -------------------------------------------------------------------------------------- ERROR vitables.h5db.dbstreemodel:dbstreemodel.py:204 Opening cancelled: file examples/arrays/array_samples.h5 has not HDF5 format. _______________________________________________________________________________ TestFilenode.test_fnbReadBuffer _______________________________________________________________________________ self = <test_filenode.TestFilenode object at 0x90bc50af0> fnode = /filenode (EArray(573,)) '' atom := UInt8Atom(shape=(), dflt=0) maindim := 0 flavor := 'numpy' byteorder := 'irrelevant' chunkshape := (65536,) def test_fnbReadBuffer(self, fnode): # The filenode buffer > fnb = fnbuffer.FilenodeBuffer(fnode) tests/test_filenode.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <vitables.vttables.filenodebuffer.FilenodeBuffer object at 0x9421c9a90> leaf = /filenode (EArray(573,)) '' atom := UInt8Atom(shape=(), dflt=0) maindim := 0 flavor := 'numpy' byteorder := 'irrelevant' chunkshape := (65536,) def __init__(self, leaf): """ Initializes the buffer. """ self.leaf = leaf # The structure where read data will be stored. self.chunk = numpy.array([]) vtapp = vtutils.getApp() > self.temp_filenode, self.total_rows = vtapp.filenodes_map[leaf] E KeyError: /filenode (EArray(573,)) '' E atom := UInt8Atom(shape=(), dflt=0) E maindim := 0 E flavor := 'numpy' E byteorder := 'irrelevant' E chunkshape := (65536,) vitables/vttables/filenodebuffer.py:79: KeyError _______________________________________________________________________________ TestFilenode.test_fnbTotalNRows _______________________________________________________________________________ self = <test_filenode.TestFilenode object at 0x90bc50ca0> fnode = /filenode (EArray(573,)) '' atom := UInt8Atom(shape=(), dflt=0) maindim := 0 flavor := 'numpy' byteorder := 'irrelevant' chunkshape := (65536,) def test_fnbTotalNRows(self, fnode): # The filenode buffer > fnb = fnbuffer.FilenodeBuffer(fnode) tests/test_filenode.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <vitables.vttables.filenodebuffer.FilenodeBuffer object at 0x9421c9820> leaf = /filenode (EArray(573,)) '' atom := UInt8Atom(shape=(), dflt=0) maindim := 0 flavor := 'numpy' byteorder := 'irrelevant' chunkshape := (65536,) def __init__(self, leaf): """ Initializes the buffer. """ self.leaf = leaf # The structure where read data will be stored. self.chunk = numpy.array([]) vtapp = vtutils.getApp() > self.temp_filenode, self.total_rows = vtapp.filenodes_map[leaf] E KeyError: /filenode (EArray(573,)) '' E atom := UInt8Atom(shape=(), dflt=0) E maindim := 0 E flavor := 'numpy' E byteorder := 'irrelevant' E chunkshape := (65536,) vitables/vttables/filenodebuffer.py:79: KeyError ====================================================================================== warnings summary ======================================================================================= vitables/vtapp.py:493 /usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/vtapp.py:493: DeprecationWarning: invalid escape sequence \. "(^{0}$)|[a-zA-Z_]+[0-9a-zA-Z_]*(?:\.[0-9a-zA-Z_]+)?$" vitables/vtapp.py:502 /usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/vtapp.py:502: DeprecationWarning: invalid escape sequence \. "(^{0}$)|[a-zA-Z_]+[0-9a-zA-Z_]*(?:\.[0-9a-zA-Z_]+)?$" vitables/vtapp.py:510 /usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/vtapp.py:510: DeprecationWarning: invalid escape sequence \. pattern = "[a-zA-Z_]+[0-9a-zA-Z_]*(?:\.[0-9a-zA-Z_]+)?$" vitables/utils.py:334 /usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/utils.py:334: DeprecationWarning: invalid escape sequence \. if not re.search('\.(.+)$', os.path.basename(filepath)): vitables/preferences/vtconfig.py:127 /usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/preferences/vtconfig.py:127: DeprecationWarning: invalid escape sequence \S """ vitables/docbrowser/browsergui.py:319 /usr/ports/devel/vitables/work/ViTables-3.0.3/vitables/docbrowser/browsergui.py:319: DeprecationWarning: invalid escape sequence \s if re.search("^(\s?\d)", action.text()): tests/test_filenode.py::TestFilenode::test_isFilenode /usr/local/lib/python3.9/site-packages/tables/node.py:251: DeprecationWarning: `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead. self._v_objectid = self._g_open() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ========================================================================== 3 failed, 53 passed, 7 warnings in 19.53s ==========================================================================
Version: 3.0.3 Python-3.9 FreeBSD 13.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version: 3.0.3
Python-3.9
FreeBSD 13.2
The text was updated successfully, but these errors were encountered: