mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-16 14:36:47 +00:00
Again but better
This commit is contained in:
parent
803210d287
commit
65ea8e014a
@ -517,7 +517,7 @@ class TestJSInterpreter(unittest.TestCase):
|
|||||||
self._test('function f(){return "t-e-s-t".split(/[es-]+/)}',
|
self._test('function f(){return "t-e-s-t".split(/[es-]+/)}',
|
||||||
['t', 't'])
|
['t', 't'])
|
||||||
# from MDN: surrogate pairs aren't handled: case 1 fails, and case 2 beats Py3.2
|
# 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(/(?:)/)}',
|
# self._test('function f(){return "😄😄".split(/(?:)/)}',
|
||||||
# ['\ud83d', '\ude04', '\ud83d', '\ude04'])
|
# ['\ud83d', '\ude04', '\ud83d', '\ude04'])
|
||||||
self._test('function f(){return "😄😄".split(/(?:)/u)}',
|
self._test('function f(){return "😄😄".split(/(?:)/u)}',
|
||||||
|
Loading…
Reference in New Issue
Block a user