44from os import mkdir
55from os .path import join , isfile , abspath , dirname
66from unittest import TestCase
7- from unittest import skipIf
7+ from unittest import skipUnless
88from unittest import main as run_tests
99from flaky import flaky
1010
@@ -232,14 +232,14 @@ def test_download_and_install(self):
232232class EdgeChromiumDriverManagerTestsWithAutomaticLocations (AutomaticBaseTest ):
233233 DRIVER_MANAGER = webdrivermanager .EdgeChromiumDriverManager
234234
235- @skipIf (sys .platform .startswith ("lin " ), "No EdgeChromium for linux " )
235+ @skipUnless (sys .platform .startswith ("win " ), "No EdgeChromium on this platform " )
236236 @flaky
237237 def test_download (self ):
238238 self .instance = self .DRIVER_MANAGER ()
239239 filename = self .instance .download (show_progress_bar = False )
240240 self .assertTrue (isfile (filename ), 'Downloading and saving seems to have failed' )
241241
242- @skipIf (sys .platform .startswith ("lin " ), "No EdgeChromium for linux " )
242+ @skipUnless (sys .platform .startswith ("win " ), "No EdgeChromium on this platform " )
243243 @flaky
244244 def test_download_and_install (self ):
245245 self .instance = self .DRIVER_MANAGER ()
@@ -251,14 +251,14 @@ def test_download_and_install(self):
251251class EdgeChromiumDriverManagerTestsWithExplicitLocations (ExplicitBaseTest ):
252252 DRIVER_MANAGER = webdrivermanager .EdgeChromiumDriverManager
253253
254- @skipIf (sys .platform .startswith ("lin " ), "No EdgeChromium for linux " )
254+ @skipUnless (sys .platform .startswith ("win " ), "No EdgeChromium on this platform " )
255255 @flaky
256256 def test_download (self ):
257257 self .instance = self .DRIVER_MANAGER (download_root = self .temp_dir .name )
258258 filename = self .instance .download (show_progress_bar = False )
259259 self .assertTrue (isfile (filename ), 'Downloading and saving seems to have failed' )
260260
261- @skipIf (sys .platform .startswith ("lin " ), "No EdgeChromium for linux " )
261+ @skipUnless (sys .platform .startswith ("win " ), "No EdgeChromium on this platform " )
262262 @flaky
263263 def test_download_and_install (self ):
264264 link_path = self .make_link_dir ()
0 commit comments