bro
This commit is contained in:
1 parent
de41a02749
commit
9af09cebd3
764 files changed
+54218
-78859
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import unittest
|
||||
from pygame.tests.test_utils import question, prompt
|
||||
|
||||
import pygame
|
||||
import pygame._sdl2.controller
|
||||
from pygame.tests.test_utils import prompt, question
|
||||
|
||||
|
||||
class JoystickTypeTest(unittest.TestCase):
|
||||
@@ -31,10 +31,6 @@ class JoystickTypeTest(unittest.TestCase):
|
||||
|
||||
self.fail()
|
||||
|
||||
def test_Joystick_alias(self):
|
||||
"""Check if pygame.Joystick is present and the correct type."""
|
||||
self.assertIs(pygame.Joystick, pygame.joystick.Joystick)
|
||||
|
||||
|
||||
class JoystickModuleTest(unittest.TestCase):
|
||||
def test_get_init(self):
|
||||
@@ -122,7 +118,7 @@ class JoystickModuleTest(unittest.TestCase):
|
||||
try:
|
||||
count = pygame.joystick.get_count()
|
||||
self.assertGreaterEqual(
|
||||
count, 0, ("joystick.get_count() must return a value >= 0")
|
||||
count, 0, ("joystick.get_count() must " "return a value >= 0")
|
||||
)
|
||||
finally:
|
||||
pygame.joystick.quit()
|
||||
|
||||
Reference in new issue
Block a user