Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d394df

Browse filesBrowse files
authored
Merge pull request #20883 from QuLogic/qt-interrupt-cleanup
Make pywin32 optional in Ctrl+C Qt test.
2 parents 662148f + 852a63b commit 6d394df
Copy full SHA for 6d394df

File tree

Expand file treeCollapse file tree

2 files changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-2
lines changed

‎lib/matplotlib/tests/test_backend_qt.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_qt.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def platform_simulate_ctrl_c(request):
3939
from functools import partial
4040

4141
if hasattr(signal, "CTRL_C_EVENT"):
42-
from win32api import GenerateConsoleCtrlEvent
43-
return partial(GenerateConsoleCtrlEvent, 0, 0)
42+
win32api = pytest.importorskip('win32api')
43+
return partial(win32api.GenerateConsoleCtrlEvent, 0, 0)
4444
else:
4545
# we're not on windows
4646
return partial(os.kill, os.getpid(), signal.SIGINT)

‎requirements/testing/extra.txt

Copy file name to clipboardExpand all lines: requirements/testing/extra.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ nbformat!=5.0.0,!=5.0.1
66
pandas!=0.25.0
77
pikepdf
88
pytz
9+
pywin32; sys.platform == 'win32'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.