diff --git a/tests/ci/bengali-language-surface.test.js b/tests/ci/bengali-language-surface.test.js index b98b5a32a..cb88d3153 100644 --- a/tests/ci/bengali-language-surface.test.js +++ b/tests/ci/bengali-language-surface.test.js @@ -125,10 +125,15 @@ function run() { } snippets.forEach(snippet => { + const encoded = Buffer.from(snippet.code, 'utf8').toString('base64'); const result = spawnSync( python.command, - [...python.prefix, '-c', "import sys; compile(sys.stdin.read(), '', 'exec')"], - { input: snippet.code, encoding: 'utf8' }, + [ + ...python.prefix, + '-c', + "import base64, sys; compile(base64.b64decode(sys.stdin.buffer.read()).decode('utf-8'), '', 'exec')", + ], + { input: encoded, encoding: 'utf8' }, ); assert.strictEqual( result.status,