Skip to content

Commit

Permalink
@unittest.skipIf(sys.version_info >= (3, 13), "imghdr was removed in …
Browse files Browse the repository at this point in the history
…Python 3.13")
  • Loading branch information
cclauss committed May 14, 2024
1 parent 48acc67 commit 66789ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,17 @@ def testupdatestatuswithmedia(self):
update = self.api.update_status_with_media(tweet_text, 'assets/banner.png')
self.assertIn(tweet_text + ' https://t.co', update.text)

@unittest.skipIf(sys.version_info >= (3, 13), "imghdr was removed in Python 3.13")
@tape.use_cassette('testmediauploadpng.yaml')
def testmediauploadpng(self):
self.api.media_upload('assets/banner.png')

@unittest.skipIf(sys.version_info >= (3, 13), "imghdr was removed in Python 3.13")
@tape.use_cassette('testmediauploadgif.yaml')
def testmediauploadgif(self):
self.api.media_upload('assets/animated.gif')

@unittest.skipIf(sys.version_info >= (3, 13), "imghdr was removed in Python 3.13")
@tape.use_cassette('testmediauploadmp4.yaml')
def testmediauploadmp4(self):
self.api.media_upload('assets/video.mp4')
Expand Down

0 comments on commit 66789ca

Please sign in to comment.