Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support
const
in typename (#1231)
* add tests/test_1229_const_in_typename.py * tests/test_1229_const_in_typename.py: test without a file * ignore the const token * workaround test failure When full test suite is ran the following error is seen: ``` ____________________________ test_const_in_typename ____________________________ def test_const_in_typename(): > assert parse_typename("TH1I*") == AsPointer(Model_TH1I) E AssertionError: assert AsPointer(Model_TH1I) == AsPointer(Model_TH1I) E + where AsPointer(Model_TH1I) = parse_typename('TH1I*') E + and AsPointer(Model_TH1I) = AsPointer(Model_TH1I) tests/test_1229_const_in_typename.py:12: AssertionError ``` Running just the `tests/test_1229_const_in_typename.py` doesn't show that. Not clear what re-defines the types/modules. * add back the file-based test (since it was added to skhep_testdata) * style: pre-commit fixes * checking for 'const' early makes these code blocks dead code --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: jpivarski <[email protected]> Co-authored-by: Ianna Osborne <[email protected]>
- Loading branch information