*** Running test-ascii-control ===== CASE: -c echo $'\x02' | json read ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ ===== CASE: -c echo $'"foo \x01 "' | json read pp test_ (_reply) ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ ===== CASE: -c var invalid = b'\y01' echo $["u'foo" ++ invalid ++ "'"] | json8 read pp test_ (_reply) ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ OK test-ascii-control *** Running test-cpython Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Invalid control character at: line 1 column 6 (char 5) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1) OK test-cpython *** Running test-encode ===== CASE: -c var d = {}; setvar d.k = d; json write (d) ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ ===== CASE: -c var L = []; call L->append(L); json write (L) ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ ===== CASE: -c var L = []; call L->append(/d+/); j8 write (L) ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ OK test-encode *** Running test-j8-lines ===== CASE: -c write @(echo ' "json\tstring" '; echo; echo " b'j8' "; echo ' unquoted ';) ===== Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in import posix_ as posix ImportError: No module named posix_ data_lang/j8-errors.sh: fatal: Should run under bin/ysh: expected status 0, got 1 FAIL test-j8-lines