From 023a594a32450ad02d771de6f83805f3bcd1662a 2022-12-23 18:16:16
From: Matthias Bussonnier <bussonniermatthias@gmail.com>
Date: 2022-12-23 18:16:16
Subject: [PATCH] extend unicode for Python 3.12

---

diff --git a/IPython/core/completer.py b/IPython/core/completer.py
index 4edeb93..5ba8ea0 100644
--- a/IPython/core/completer.py
+++ b/IPython/core/completer.py
@@ -285,7 +285,7 @@ if GENERATING_DOCUMENTATION:
 # write this). With below range we cover them all, with a density of ~67%
 # biggest next gap we consider only adds up about 1% density and there are 600
 # gaps that would need hard coding.
-_UNICODE_RANGES = [(32, 0x3134b), (0xe0001, 0xe01f0)]
+_UNICODE_RANGES = [(32, 0x323B0), (0xE0001, 0xE01F0)]
 
 # Public API
 __all__ = ["Completer", "IPCompleter"]
diff --git a/IPython/core/tests/test_completer.py b/IPython/core/tests/test_completer.py
index 5e8cb35..7783798 100644
--- a/IPython/core/tests/test_completer.py
+++ b/IPython/core/tests/test_completer.py
@@ -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 <= 138552, message
+    assert len_exp <= 143041, message
 
 
 @contextmanager