- Notifications
You must be signed in to change notification settings - Fork294
Commit545abc2
committed
Use Node.from_parent() constructor to support pytest 6
Add a wrapper not to break pytest 4 (needed for Python 2 support). ============================= test session starts ============================== platform linux -- Python 3.9.0b5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 rootdir: /builddir/build/BUILD/html5lib-1.1, configfile: pytest.ini plugins: expect-1.1.0 collected 0 items / 1 error ==================================== ERRORS ==================================== ________________________ ERROR collecting test session _________________________ /usr/lib/python3.9/site-packages/pluggy/hooks.py:286: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/lib/python3.9/site-packages/pluggy/manager.py:93: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/lib/python3.9/site-packages/pluggy/manager.py:84: in <lambda> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( html5lib/tests/conftest.py:105: in pytest_collect_file return TokenizerFile(path, parent) /usr/lib/python3.9/site-packages/_pytest/nodes.py:95: in __call__ warnings.warn(NODE_USE_FROM_PARENT.format(name=self.__name__), stacklevel=2) E pytest.PytestDeprecationWarning: Direct construction of TokenizerFile has been deprecated, please use TokenizerFile.from_parent. E Seehttps://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.Fixes#5051 parent569e580 commit545abc2
File tree
6 files changed
+30
-21
lines changed- html5lib/tests
6 files changed
+30
-21
lines changedLines changed: 12 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 |
| - | |
| 102 | + | |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
- tokenizer/README.md+12-15
- tokenizer/contentModelFlags.test+2-14
- tokenizer/domjs.test+21-255
- tokenizer/entities.test+70-329
- tokenizer/escapeFlag.test+1-4
- tokenizer/namedEntities.test+16.9k-17.2k
- tokenizer/numericEntities.test+106-434
- tokenizer/pendingSpecChanges.test+2-4
- tokenizer/test1.test+25-178
- tokenizer/test2.test+30-126
- tokenizer/test3.test+1.2k-6.4k
- tokenizer/test4.test+64-252
- tokenizer/unicodeChars.test+94-376
- tokenizer/unicodeCharsProblematic.test+10-20
- tokenizer/xmlViolation.test+4-2
- tree-construction/README.md+3-7
- tree-construction/blocks.dat-719
- tree-construction/comments01.dat-46
- tree-construction/doctype01.dat-46
- tree-construction/domjs-unsafe.dat
- tree-construction/entities01.dat-148
- tree-construction/entities02.dat-16
- tree-construction/foreign-fragment.dat-10
- tree-construction/html5test-com.dat-11
- tree-construction/menuitem-element.dat+7-35
- tree-construction/noscript01.dat+18-18
- tree-construction/pending-spec-changes-plain-text-unsafe.dat
- tree-construction/plain-text-unsafe.dat
- tree-construction/scriptdata01.dat-20
- tree-construction/scripted/adoption01.dat-1
- tree-construction/scripted/ark.dat-1
- tree-construction/scripted/webkit01.dat-2
- tree-construction/tests1.dat-31
- tree-construction/tests10.dat-2
- tree-construction/tests16.dat-144
- tree-construction/tests18.dat+33-245
- tree-construction/tests2.dat-41
- tree-construction/tests21.dat-20
- tree-construction/tests25.dat-67
- tree-construction/tests26.dat-5
- tree-construction/tests6.dat-4
- tree-construction/tests8.dat-11
- tree-construction/webkit01.dat-35
- tree-construction/webkit02.dat-2
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
| 195 | + | |
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
|
Lines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
0 commit comments
Comments
(0)