@@ -187,11 +187,21 @@ def normcase(path):
187187 raise NotImplementedError
188188 ##########
189189 def _fix_fileid (* args ):
190- return fix_fileid (* args , ** dict (_normcase = normcase , _pathsep = pathsep ,))
190+ return fix_fileid (
191+ * args ,
192+ ** dict (
193+ _normcase = normcase ,
194+ _pathsep = pathsep ,
195+ )
196+ )
191197
192198 def _normalize_test_id (* args ):
193199 return pytest_item ._normalize_test_id (
194- * args , ** dict (_fix_fileid = _fix_fileid , _pathsep = pathsep ,)
200+ * args ,
201+ ** dict (
202+ _fix_fileid = _fix_fileid ,
203+ _pathsep = pathsep ,
204+ )
195205 )
196206
197207 def _iter_nodes (* args ):
@@ -205,20 +215,39 @@ def _iter_nodes(*args):
205215 )
206216
207217 def _parse_node_id (* args ):
208- return pytest_item ._parse_node_id (* args , ** dict (_iter_nodes = _iter_nodes ,))
218+ return pytest_item ._parse_node_id (
219+ * args ,
220+ ** dict (
221+ _iter_nodes = _iter_nodes ,
222+ )
223+ )
209224
210225 ##########
211226 def _split_fspath (* args ):
212- return pytest_item ._split_fspath (* args , ** dict (_normcase = normcase ,))
227+ return pytest_item ._split_fspath (
228+ * args ,
229+ ** dict (
230+ _normcase = normcase ,
231+ )
232+ )
213233
214234 ##########
215235 def _matches_relfile (* args ):
216236 return pytest_item ._matches_relfile (
217- * args , ** dict (_normcase = normcase , _pathsep = pathsep ,)
237+ * args ,
238+ ** dict (
239+ _normcase = normcase ,
240+ _pathsep = pathsep ,
241+ )
218242 )
219243
220244 def _is_legacy_wrapper (* args ):
221- return pytest_item ._is_legacy_wrapper (* args , ** dict (_pathsep = pathsep ,))
245+ return pytest_item ._is_legacy_wrapper (
246+ * args ,
247+ ** dict (
248+ _pathsep = pathsep ,
249+ )
250+ )
222251
223252 def _get_location (* args ):
224253 return pytest_item ._get_location (
@@ -300,7 +329,9 @@ def test_failure(self):
300329
301330 self .assertEqual (
302331 stub .calls ,
303- [("pytest.main" , None , {"args" : self .DEFAULT_ARGS , "plugins" : [plugin ]}),],
332+ [
333+ ("pytest.main" , None , {"args" : self .DEFAULT_ARGS , "plugins" : [plugin ]}),
334+ ],
304335 )
305336
306337 def test_no_tests_found (self ):
@@ -837,7 +868,9 @@ def test_doctest(self):
837868 id = "./x/y/z/test_eggs.py::test_eggs" ,
838869 name = "test_eggs" ,
839870 path = TestPath (
840- root = testroot , relfile = fix_relpath (relfile ), func = None ,
871+ root = testroot ,
872+ relfile = fix_relpath (relfile ),
873+ func = None ,
841874 ),
842875 source = "{}:{}" .format (fix_relpath (relfile ), 1 ),
843876 markers = [],
@@ -860,7 +893,9 @@ def test_doctest(self):
860893 id = "./x/y/z/test_eggs.py::test_eggs.TestSpam" ,
861894 name = "test_eggs.TestSpam" ,
862895 path = TestPath (
863- root = testroot , relfile = fix_relpath (relfile ), func = None ,
896+ root = testroot ,
897+ relfile = fix_relpath (relfile ),
898+ func = None ,
864899 ),
865900 source = "{}:{}" .format (fix_relpath (relfile ), 13 ),
866901 markers = [],
@@ -883,7 +918,9 @@ def test_doctest(self):
883918 id = "./x/y/z/test_eggs.py::test_eggs.TestSpam.TestEggs" ,
884919 name = "test_eggs.TestSpam.TestEggs" ,
885920 path = TestPath (
886- root = testroot , relfile = fix_relpath (relfile ), func = None ,
921+ root = testroot ,
922+ relfile = fix_relpath (relfile ),
923+ func = None ,
887924 ),
888925 source = "{}:{}" .format (fix_relpath (relfile ), 28 ),
889926 markers = [],
0 commit comments