File tree 1 file changed +13
-8
lines changed 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -1264,15 +1264,20 @@ def pytest_load_initial_conftests(self):
1264
1264
m = My ()
1265
1265
pm .register (m )
1266
1266
hc = pm .hook .pytest_load_initial_conftests
1267
- assert [x .function .__module__ for x in hc ._nonwrappers ] == [
1268
- "_pytest.config" ,
1269
- m .__module__ ,
1270
- "_pytest.legacypath" ,
1271
- "_pytest.pythonpath" ,
1267
+ hookimpls = [
1268
+ (
1269
+ hookimpl .function .__module__ ,
1270
+ "wrapper" if hookimpl .hookwrapper else "nonwrapper" ,
1271
+ )
1272
+ for hookimpl in hc .get_hookimpls ()
1272
1273
]
1273
- assert [x .function .__module__ for x in hc ._wrappers ] == [
1274
- "_pytest.capture" ,
1275
- "_pytest.warnings" ,
1274
+ assert hookimpls == [
1275
+ ("_pytest.config" , "nonwrapper" ),
1276
+ (m .__module__ , "nonwrapper" ),
1277
+ ("_pytest.legacypath" , "nonwrapper" ),
1278
+ ("_pytest.pythonpath" , "nonwrapper" ),
1279
+ ("_pytest.capture" , "wrapper" ),
1280
+ ("_pytest.warnings" , "wrapper" ),
1276
1281
]
1277
1282
1278
1283
You can’t perform that action at this time.
0 commit comments