Changed test_imagetk to run on Python 3

This commit is contained in:
Andrew Murray 2018-04-17 14:06:05 +10:00
parent c013188594
commit b33b045e9b

View File

@ -1,10 +1,13 @@
from helper import unittest, PillowTestCase, hopper
from helper import unittest, PillowTestCase, hopper, py3
from PIL import Image
try:
from PIL import ImageTk
import Tkinter as tk
if py3:
import tkinter as tk
else:
import Tkinter as tk
dir(ImageTk)
HAS_TK = True
except (OSError, ImportError) as v: