Skip to content

Commit

Permalink
Removing tests for pygame.event.peek(None).
Browse files Browse the repository at this point in the history
  • Loading branch information
gresm committed Oct 22, 2024
1 parent a2d4ca4 commit ea8e2b6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/event_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ def test_clear(self):
self.assertRaises(TypeError, pygame.event.get, ["a", "b", "c"])

def test_peek(self):
pygame.event.peek()
pygame.event.peek(None)
pygame.event.peek(None, True)

pygame.event.peek(pump=False)
pygame.event.peek(pump=True)
pygame.event.peek(eventtype=None)
pygame.event.peek(eventtype=[pygame.KEYUP, pygame.KEYDOWN])
pygame.event.peek(eventtype=pygame.USEREVENT, pump=False)

Expand Down Expand Up @@ -786,11 +779,6 @@ def test_peek__empty_queue(self):
"""Ensure peek() works correctly on an empty queue."""
pygame.event.clear()

# Ensure all events can be checked.
peeked = pygame.event.peek()

self.assertFalse(peeked)

# Ensure events can be checked individually.
for event_type in EVENT_TYPES:
peeked = pygame.event.peek(event_type)
Expand Down

0 comments on commit ea8e2b6

Please sign in to comment.