Skip to content

Commit

Permalink
Added an error handler for run time errors on Tk
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Apr 26, 2023
1 parent 4f1ed1b commit c5994f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_imshowtk.py
Expand Up @@ -6,7 +6,13 @@

def test_bitmap_to_photo():
"""bitmap_to_photo runs"""
window = Tk(None)
try:
window = Tk(None)
except RuntimeError:
#we're getting runtime errors on some macos CI.
#https://github.com/actions/setup-python/issues/649
assert False
return
image = cv2.imread('project-icon.png')
print (image.shape)

Expand Down

0 comments on commit c5994f3

Please sign in to comment.