From 006dc1aadcc18d95005f01949c0df01d50b4824c 2023-12-31 13:14:36 From: Matthias Bussonnier Date: 2023-12-31 13:14:36 Subject: [PATCH] update unicode range for python 3.13 --- diff --git a/IPython/core/tests/test_completer.py b/IPython/core/tests/test_completer.py index 3ff6569..4498b5b 100644 --- a/IPython/core/tests/test_completer.py +++ b/IPython/core/tests/test_completer.py @@ -61,7 +61,7 @@ def recompute_unicode_ranges(): pstart, pstop = 0,0 for start, stop in rg: lens.append(stop-start) - gap_lens.append((start - pstop, hex(pstop), hex(start), f'{round((start - pstop)/0xe01f0*100)}%')) + gap_lens.append((start - pstop, hex(pstop+1), hex(start), f'{round((start - pstop)/0xe01f0*100)}%')) pstart, pstop = start, stop return sorted(gap_lens)[-1] @@ -99,7 +99,7 @@ def test_unicode_range(): assert len_exp == len_test, message # fail if new unicode symbols have been added. - assert len_exp <= 143041, message + assert len_exp <= 143668, message @contextmanager