Reikriam

uproot test fail

Feb 7th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. [reik@reik-msi uproot]$ pytest
  2. ========================================= test session starts ==========================================
  3. platform linux -- Python 3.7.2, pytest-4.1.1, py-1.7.0, pluggy-0.8.1
  4. rootdir: /home/reik/Projects/uproot-dev/uproot, inifile:
  5. collected 91 items
  6.  
  7. tests/test_cache.py .... [ 4%]
  8. tests/test_compression.py ..... [ 9%]
  9. tests/test_http.py ..... [ 15%]
  10. tests/test_issues.py ...................... [ 39%]
  11. tests/test_jagged.py ... [ 42%]
  12. tests/test_stlvector.py ....... [ 50%]
  13. tests/test_tree.py ................................ [ 85%]
  14. tests/test_versions.py ........... [ 97%]
  15. tests/test_write.py F. [100%]
  16.  
  17. =============================================== FAILURES ===============================================
  18. _____________________________________________ test_strings _____________________________________________
  19.  
  20. tmp_path = PosixPath('/tmp/pytest-of-reik/pytest-1/test_strings0')
  21.  
  22. def test_strings(tmp_path):
  23. ROOT = pytest.importorskip("ROOT")
  24. filename = join(str(tmp_path), "example.root")
  25.  
  26. with uproot.recreate(filename) as f:
  27. f["hello"] = "world"
  28.  
  29. f = ROOT.TFile.Open(filename)
  30. > assert f.Get("hello") == "world"
  31. E AssertionError: assert <cppyy.gbl.TObjString object at 0x5612ff22e3a0> == 'world'
  32. E + where <cppyy.gbl.TObjString object at 0x5612ff22e3a0> = <bound method _TDirectoryFile_Get of <cppyy.gbl.TFile object at 0x5612fda9b3e0>>('hello')
  33. E + where <bound method _TDirectoryFile_Get of <cppyy.gbl.TFile object at 0x5612fda9b3e0>> = <cppyy.gbl.TFile object at 0x5612fda9b3e0>.Get
  34.  
  35. tests/test_write.py:46: AssertionError
  36. =========================================== warnings summary ===========================================
  37. /usr/lib/python3.7/site-packages/cachetools-3.0.0-py3.7.egg/cachetools/abc.py:7
  38. /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
  39. class DefaultMapping(collections.MutableMapping):
  40.  
  41. /usr/lib/python3.7/site-packages/pandas/core/dtypes/inference.py:6
  42. /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
  43. from collections import Iterable
  44.  
  45. -- Docs: https://docs.pytest.org/en/latest/warnings.html
  46. =========================== 1 failed, 90 passed, 2 warnings in 5.90 seconds ============================
Advertisement
Add Comment
Please, Sign In to add comment