Skip to content

Commit e70c255

Browse files
committed
Run test if OS is Windows only
Signed-off-by: sschulz92 <[email protected]>
1 parent 9deb27a commit e70c255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def test_Registry_get_all_methods_in_should_give_all_the_methods_define_in_that_
374374
self.assertEqual(3, len(registry.get_all_methods_in("foo.py")))
375375
self.assertEqual(2, len(registry.get_all_methods_in("bar.py")))
376376

377-
@unittest.skipIf(sys.platform == "darwin", "Fails on macOS due to case sensitivity")
377+
@unittest.skipIf(not sys.platform.startswith("win"), "Test is designed to cover Windows like paths")
378378
def test_Registry_get_all_methods_in_should_handle_paths_case_sensitive(self):
379379
lower_c_drive = 'c:/random/path/foo.py'
380380
upper_c_drive = 'C:/random/path/foo.py'
@@ -390,7 +390,7 @@ def test_Registry_get_all_methods_in_should_handle_paths_case_sensitive(self):
390390
self.assertEqual(2, len(registry.get_all_methods_in(lower_c_drive)))
391391
self.assertEqual(2, len(registry.get_all_methods_in(upper_c_drive)))
392392

393-
@unittest.skipIf(sys.platform.startswith("win"), "Fails on macOS due to case sensitivity")
393+
@unittest.skipIf(sys.platform.startswith("win"), "Fails on Windows due to case sensitivity")
394394
def test_Registry_get_all_methods_in_should_handle_paths_case_sensitive_on_mac(self):
395395
path1 = '/random/path/foo.py'
396396
path2 = '/random/PATH/foo.py'

0 commit comments

Comments
 (0)