Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [reik@reik-msi uproot]$ pytest
- ========================================= test session starts ==========================================
- platform linux -- Python 3.7.2, pytest-4.1.1, py-1.7.0, pluggy-0.8.1
- rootdir: /home/reik/Projects/uproot-dev/uproot, inifile:
- collected 91 items
- tests/test_cache.py .... [ 4%]
- tests/test_compression.py ..... [ 9%]
- tests/test_http.py ..... [ 15%]
- tests/test_issues.py ...................... [ 39%]
- tests/test_jagged.py ... [ 42%]
- tests/test_stlvector.py ....... [ 50%]
- tests/test_tree.py ................................ [ 85%]
- tests/test_versions.py ........... [ 97%]
- tests/test_write.py F. [100%]
- =============================================== FAILURES ===============================================
- _____________________________________________ test_strings _____________________________________________
- tmp_path = PosixPath('/tmp/pytest-of-reik/pytest-1/test_strings0')
- def test_strings(tmp_path):
- ROOT = pytest.importorskip("ROOT")
- filename = join(str(tmp_path), "example.root")
- with uproot.recreate(filename) as f:
- f["hello"] = "world"
- f = ROOT.TFile.Open(filename)
- > assert f.Get("hello") == "world"
- E AssertionError: assert <cppyy.gbl.TObjString object at 0x5612ff22e3a0> == 'world'
- E + where <cppyy.gbl.TObjString object at 0x5612ff22e3a0> = <bound method _TDirectoryFile_Get of <cppyy.gbl.TFile object at 0x5612fda9b3e0>>('hello')
- E + where <bound method _TDirectoryFile_Get of <cppyy.gbl.TFile object at 0x5612fda9b3e0>> = <cppyy.gbl.TFile object at 0x5612fda9b3e0>.Get
- tests/test_write.py:46: AssertionError
- =========================================== warnings summary ===========================================
- /usr/lib/python3.7/site-packages/cachetools-3.0.0-py3.7.egg/cachetools/abc.py:7
- /usr/lib/python3.7/site-packages/cachetools-3.0.0-py3.7.egg/cachetools/abc.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
- class DefaultMapping(collections.MutableMapping):
- /usr/lib/python3.7/site-packages/pandas/core/dtypes/inference.py:6
- /usr/lib/python3.7/site-packages/pandas/core/dtypes/inference.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
- from collections import Iterable
- -- Docs: https://docs.pytest.org/en/latest/warnings.html
- =========================== 1 failed, 90 passed, 2 warnings in 5.90 seconds ============================
Advertisement
Add Comment
Please, Sign In to add comment