Skip to content

Commit

Permalink
Merge pull request #2898 from pygame-community/add-tolerance-to-pause…
Browse files Browse the repository at this point in the history
…-upause-test

Add a delta of 2 ms to test_music_pause__unpause()
  • Loading branch information
itzpr3d4t0r authored Jun 2, 2024
2 parents bc0902f + 5a64970 commit 92ee77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mixer_music_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_music_pause__unpause(self):
pygame.mixer.music.unpause()
after_unpause = pygame.mixer.music.get_pos()

self.assertEqual(before_unpause, after_unpause)
self.assertAlmostEqual(before_unpause, after_unpause, delta=2)

def test_music_get_metadata(self):
file_dir = example_path("data")
Expand Down

0 comments on commit 92ee77a

Please sign in to comment.