diff --git a/.appveyor.yml b/.appveyor.yml index 2b7af1b..6571d6b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,15 +1,19 @@ +image: + - Visual Studio 2022 environment: matrix: - - PYTHON: "C:\\PYTHON34" - - PYTHON: "C:\\PYTHON35" - - PYTHON: "C:\\PYTHON36" - - PYTHON: "C:\\PYTHON37" - - PYTHON: "C:\\PYTHON38" + - PYTHON: "C:\\PYTHON36-x64" + - PYTHON: "C:\\PYTHON37-x64" + - PYTHON: "C:\\PYTHON38-x64" + - PYTHON: "C:\\PYTHON39-x64" + - PYTHON: "C:\\PYTHON310-x64" + - PYTHON: "C:\\PYTHON311-x64" install: - - "%PYTHON%\\python.exe -m pip install codecov coverage nose pillow pynput babel" + - "%PYTHON%\\python.exe -m pip install --upgrade pip setuptools wheel" + - "%PYTHON%\\python.exe -m pip install codecov coverage nose nose-exclude pillow pynput babel" build: off test_script: - "%PYTHON%\\python.exe -m pip install ." - - "%PYTHON%\\python.exe -m nose --with-coverage" + - "%PYTHON%\\python.exe -m nose --with-coverage --exclude-dir=/babel --exclude-dir=/pytz --exclude-dir=/tkinter" after_test: - "%PYTHON%\\Scripts\\codecov.exe" diff --git a/tests/test_calendar.py b/tests/test_calendar.py index 121b504..8cbb318 100644 --- a/tests/test_calendar.py +++ b/tests/test_calendar.py @@ -224,8 +224,7 @@ def test_calendar_buttons_functions(self): def test_calendar_textvariable(self): var = tk.StringVar(self.window) - widget = Calendar(self.window, selectmode='day', - year=2015, month=1, day=3, textvariable=var) + widget = Calendar(self.window, selectmode='day', year=2015, month=1, day=3, textvariable=var) widget.pack() self.window.update() self.assertEqual('', var.get()) @@ -267,8 +266,7 @@ def test_calendar_textvariable(self): self.assertEqual('', var.get()) widget.destroy() - widget = Calendar(self.window, selectmode='day', locale='en_US', - textvariable=var) + widget = Calendar(self.window, selectmode='day', locale='en_US', textvariable=var) widget.pack() self.window.update() widget.selection_set(date(2018, 1, 2)) diff --git a/tkcalendar/calendar_.py b/tkcalendar/calendar_.py index b3cecab..e32f6e4 100644 --- a/tkcalendar/calendar_.py +++ b/tkcalendar/calendar_.py @@ -23,7 +23,6 @@ Calendar widget """ - import calendar try: from tkinter import ttk