Skip to content

Commit e20bf11

Browse files
committed
Skip test with special unicode chars on broken Python 3.11 versions
1 parent 6b390db commit e20bf11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bpython/test/test_curtsies_painting.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
)
1414
from curtsies.fmtfuncs import cyan, bold, green, yellow, on_magenta, red
1515
from curtsies.window import CursorAwareWindow
16-
from unittest import mock
16+
from unittest import mock, skipIf
1717

1818
from bpython.curtsiesfrontend.events import RefreshRequestEvent
1919
from bpython import config, inspection
@@ -311,6 +311,10 @@ def test_cursor_position_with_padding_char(self):
311311
cursor_pos = self.repl.paint()[1]
312312
self.assertEqual(cursor_pos, (1, 4))
313313

314+
@skipIf(
315+
sys.version_info[:2] >= (3, 11) and sys.version_info[:3] < (3, 11, 1),
316+
"https://github.com/python/cpython/issues/98744",
317+
)
314318
def test_display_of_padding_chars(self):
315319
self.repl.width = 11
316320
[self.repl.add_normal_character(c) for c in "width"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy