pedronis / js-infrastructure

py.test testing and modularity infrastructure for JavaScript

commit 182: 5d4518cc71c3
parent 181: 776072c1fa54
branch: default
fix against py-trunk 5450c8db1a17, patch by hpk, add comment that one path is just 1.1.1 comp
Samuele Pedroni
3 months ago

Changed (Δ157 bytes):

raw changeset »

test/test_pytest_functional.py (6 lines added, 1 lines removed)

Up to file-list test/test_pytest_functional.py:

@@ -122,7 +122,12 @@ def test_looponfail_cleanup(testdir, mon
122
122
123
123
    # NB if item0 is directly used things explode
124
124
    # that's not what looponfails does though
125
    item1 = item0._fromtrail(item0._totrail(), item0.config)
125
    try:
126
        # <= 1.1.1
127
        item1 = item0._fromtrail(item0._totrail(), item0.config)
128
    except AttributeError:
129
        rootcol = item0.config._rootcol
130
        item1 = rootcol.fromtrail(rootcol.totrail(item0))
126
131
127
132
    item1.config.hook.pytest_runtest_protocol(item=item1)
128
133
    assert len(testreps) == 1