File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import asyncio
22import logging
3- import platform
43import random
54import re
65import subprocess
@@ -192,10 +191,7 @@ async def test_browser_closed_restart(self):
192191 == 2 # one at the beginning, one after calling Browser.close() manually
193192 )
194193
195- @pytest .mark .skipif (
196- platform .system () == "Windows" ,
197- reason = "os.kill does not work as expected on Windows" ,
198- )
194+ @allow_windows
199195 async def test_browser_crashed_restart (self ):
200196 spider = Spider ("foo" )
201197 async with make_handler (settings_dict = {"PLAYWRIGHT_BROWSER_TYPE" : "chromium" }) as handler :
@@ -239,10 +235,7 @@ async def test_browser_crashed_restart(self):
239235 == 2 # one at the beginning, one after killing the broser process
240236 )
241237
242- @pytest .mark .skipif (
243- platform .system () == "Windows" ,
244- reason = "os.kill does not work as expected on Windows" ,
245- )
238+ @allow_windows
246239 async def test_browser_crashed_do_not_restart (self ):
247240 spider = Spider ("foo" )
248241 settings_dict = {
You can’t perform that action at this time.
0 commit comments