summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bigaddrspace.py
diff options
context:
space:
mode:
authorGreg Price <gnprice@gmail.com>2019-09-09 15:20:40 (GMT)
committerT. Wouters <thomas@python.org>2019-09-09 15:20:40 (GMT)
commit3cbc23aa229bc5ec04845053df78eae5f54e0497 (patch)
tree05595485547709f8dffde81fc144f0119c687940 /Lib/test/test_bigaddrspace.py
parent65366bc8bdc4716ebc361e622590b45a6e5aef07 (diff)
downloadcpython-3cbc23aa229bc5ec04845053df78eae5f54e0497.zip
cpython-3cbc23aa229bc5ec04845053df78eae5f54e0497.tar.gz
cpython-3cbc23aa229bc5ec04845053df78eae5f54e0497.tar.bz2
bpo-37758: Cut always-constant conditionals on sys.maxunicode. (GH-15302)
Since PEP 393 in Python 3.3, this value is always 0x10ffff, the maximum codepoint in Unicode; there's no longer such a thing as a UCS-2 build of Python, which couldn't properly represent some characters. There are a couple of spots left where we still condition on the value of this constant. Take them out.
Diffstat (limited to 'Lib/test/test_bigaddrspace.py')
-rw-r--r--Lib/test/test_bigaddrspace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bigaddrspace.py b/Lib/test/test_bigaddrspace.py
index b639f68..aa1f8ca 100644
--- a/Lib/test/test_bigaddrspace.py
+++ b/Lib/test/test_bigaddrspace.py
@@ -55,7 +55,7 @@ class BytesTest(unittest.TestCase):
class StrTest(unittest.TestCase):
- unicodesize = 2 if sys.maxunicode < 65536 else 4
+ unicodesize = 4
@bigaddrspacetest
def test_concat(self):