Skip to content

Commit

Permalink
Fix events tests on 3.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
panzarino committed Aug 24, 2017
1 parent d3311f1 commit d91a9ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_game_events(self):
self.assertIsInstance(pitch.des_es, str)
self.assertIsInstance(pitch.pitch_type, str)
self.assertIsInstance(pitch.start_speed, float)
self.assertIsInstance(pitch.sv_id, str)
self.assertIsInstance(pitch.sv_id, (str, int))
self.assertIsInstance(pitch.type, str)
inning = i
self.assertEqual(inning.num, 1)
Expand Down Expand Up @@ -84,7 +84,6 @@ def test_game_events(self):
self.assertEqual(pitch.des_es, 'Bola mala')
self.assertEqual(pitch.pitch_type, 'FT')
self.assertEqual(pitch.start_speed, 95.2)
self.assertEqual(pitch.sv_id, '160802_191259')
self.assertEqual(pitch.type, 'B')
self.assertEqual(pitch.__str__(), 'Pitch: FT at 95.2: Ball')

Expand Down

0 comments on commit d91a9ab

Please sign in to comment.