Skip to content

Commit

Permalink
disable tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar authored Nov 19, 2023
1 parent e620444 commit cc0923d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/mouse_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ def test_set_visible__invalid_value(self):
with self.assertRaises(TypeError):
prev_visible = pygame.mouse.set_visible(invalid_value)

@unittest.skipIf(
os.environ.get("SDL_VIDEODRIVER", "") == "dummy",
"mouse.set_relative_mode requires non-null video driver",
)
def test_set_relative_mode(self):
"""Tests that set_relative_mode hides the cursor."""
pygame.mouse.set_visible(True)
Expand All @@ -351,6 +355,10 @@ def test_set_relative_mode(self):
visible = pygame.mouse.get_visible()
self.assertEqual(visible, True)

@unittest.skipIf(
os.environ.get("SDL_VIDEODRIVER", "") == "dummy",
"mouse.set_relative_mode requires non-null video driver",
)
def test_get_relative_mode(self):
"""Tests that get_relative_mode correctly reports the relative mode"""
pygame.mouse.set_relative_mode(True)
Expand Down

0 comments on commit cc0923d

Please sign in to comment.