Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport pytest 4 #429
Support pytest 4 #429
Conversation
|
Please could you fix the flake8 errors?
|
|
Better? |
|
Good, thanks! Flake8 now passes on Travis CI. |
Codecov Report
@@ Coverage Diff @@
## master #429 +/- ##
==========================================
- Coverage 90.52% 88.69% -1.83%
==========================================
Files 50 50
Lines 6973 6952 -21
Branches 1328 1308 -20
==========================================
- Hits 6312 6166 -146
- Misses 502 603 +101
- Partials 159 183 +24
Continue to review full report at Codecov.
|
|
It fails here with pytest 5.2.4, perhaps pytest 5 changed again? I changed the line
to
and it works fine now. Would you consider to include the change too? The error:
|
That change makes sense to me. Can you go ahead with that? |
|
Not sure, what’s wrong now. Is it some bug inside of pytest? Do I do something wrong? Locally, it passes without any problem both with pytest 4.6.6 and pytest 5.2.4. |
|
The original non-decorator pytest.mark.skipif line looks wrong to me from the beginning. It should be a decorated @pytest.mark.skipif in the next line IMHO. |
OK, I am too stupid and too sleepy, right now. Could I get a proper diff of what I should do, please? |
|
The majority of these functions that yield tests all yield the same test function, right? Can we not just rename those functions, rename the functions they call, and call the existing functions with i.e.,
(renamed from |
| @@ -95,12 +95,13 @@ def runPreScanEncodingTest(data, encoding): | |||
| assert encoding == stream.charEncoding[0].name, errorMessage(data, encoding, stream.charEncoding[0].name) | |||
|
|
|||
|
|
|||
| @pytest.mark.skip(reason="broken under pytest4") | |||
gsnedders
Feb 26, 2020
Member
This will need to be fixed before we can move to 4.x
This will need to be fixed before we can move to 4.x
| @@ -99,7 +99,7 @@ def test_treewalker_six_mix(): | |||
|
|
|||
| for tree in sorted(treeTypes.items()): | |||
| for intext, attrs, expected in sm_tests: | |||
| yield runTreewalkerEditTest, intext, expected, attrs, tree | |||
| runTreewalkerEditTest(intext, expected, attrs, tree) | |||
gsnedders
Feb 26, 2020
Member
As above, we do want these as separate tests.
As above, we do want these as separate tests.
See html5lib#429 for upgrading to >= 4
See html5lib#429 for upgrading to >= 4
See #429 for upgrading to >= 4
|
Fixed by #497 |
Rebase of #414 by @hroncok on the top of the current master, and two small nits fixed.