Browse Source

tests: Don't fail Dial test if tkinter failed to import

rdb 1 year ago
parent
commit
a8ca06ea47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/tkwidgets/test_Dial.py

+ 1 - 1
tests/tkwidgets/test_Dial.py

@@ -1,5 +1,5 @@
-import tkinter as tk
 import pytest
+tk = pytest.importorskip('tkinter')
 pytest.importorskip('Pmw')
 from direct.tkwidgets.Dial import Dial