Skip to content

Commit

Permalink
update unicode range for python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Dec 31, 2023
1 parent 1587b86 commit 006dc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/core/tests/test_completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def ranges(i):
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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 006dc1a

Please sign in to comment.