Skip to content

Commit

Permalink
add tests/test_1229_const_in_typename.py
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Jun 12, 2024
1 parent 94e5199 commit a23610d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/test_1229_const_in_typename.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot5/blob/main/LICENSE

import pytest
import skhep_testdata

import uproot


@pytest.fixture(scope="module")
def datafile(tmpdir_factory):
yield skhep_testdata.data_path("uproot-issue-1229.root")


@pytest.fixture
def tree(datafile):
with uproot.open(datafile) as f:
yield f["tree"]


def test_const_in_typename(tree):
assert tree["branch/pointer"].typename == 'TFooMember*'
assert tree["branch/const_pointer"].typename == 'TFooMember*'

0 comments on commit a23610d

Please sign in to comment.