Skip to content

Commit

Permalink
pythongh-97032: Skip SqueezerTest.test_write_stdout if macOS < 11.07
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Sep 24, 2022
1 parent b4f5f07 commit 42a6d8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/idlelib/idle_test/test_squeezer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tkinter import Text, Tk
import unittest
from unittest.mock import Mock, NonCallableMagicMock, patch, sentinel, ANY
from test.support import requires
from test.support import requires, requires_mac_ver

from idlelib.config import idleConf
from idlelib.percolator import Percolator
Expand Down Expand Up @@ -168,6 +168,8 @@ def test_write_not_stdout(self):
orig_write.assert_called_with(text, "stderr")
self.assertEqual(len(squeezer.expandingbuttons), 0)

# gh-97032: The following tests have problems on OS X prior to 11.7
@requires_mac_ver(11, 7)
def test_write_stdout(self):
"""Test Squeezer's overriding of the EditorWindow's write() method."""
editwin = self.make_mock_editor_window()
Expand Down

0 comments on commit 42a6d8c

Please sign in to comment.