1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 07:56:49 +00:00

Again but better

This commit is contained in:
dirkf 2024-12-12 16:32:25 +00:00 committed by GitHub
parent 803210d287
commit 65ea8e014a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -517,7 +517,7 @@ class TestJSInterpreter(unittest.TestCase):
self._test('function f(){return "t-e-s-t".split(/[es-]+/)}',
['t', 't'])
# from MDN: surrogate pairs aren't handled: case 1 fails, and case 2 beats Py3.2
if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info <= (3, 2)):
if sys.version_info >= (2, 6) and not ((3, 0) <= sys.version_info < (3, 3)):
# self._test('function f(){return "😄😄".split(/(?:)/)}',
# ['\ud83d', '\ude04', '\ud83d', '\ude04'])
self._test('function f(){return "😄😄".split(/(?:)/u)}',