Results for ysh-object.test.sh

statusyshysh_ALT
pass 130
FAIL 114
total1414
caseyshysh_ALTdescription
0pass FAIL New Obj API
details
1pass FAIL Object() creates prototype chain
details
2pass FAIL prototype()
details
3pass FAIL propView()
details
4pass FAIL Mutating method lookup with ->
details
5pass FAIL Mutating method must be up the prototype chain, not on the object
details
6pass FAIL Copy to Dict with dict(), and mutate
details
7pass FAIL setvar obj.attr = and += and ...
details
8pass FAIL obj['attr'] not allowed (for now)
details
9FAIL FAIL setvar obj['attr'] = 3 ?
detailsdetails
10pass FAIL can't encode objects as JSON
details
11pass FAIL Can all builtin methods with s.upper()
details
12pass FAIL invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t
details
13pass FAIL Object with longer prototype chain
details
13 passed, 0 OK, 0 not implemented, 0 BUG, 15 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

ysh_ALT0 New Obj API

[ysh_ALT stdout] Expected '(Obj) ("x":4)\n0\n(Dict) {"x":4}\n0\n(Null) null\n0\n(Obj) ("y":5)\n' Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT1 Object() creates prototype chain

[ysh_ALT stdout] Expected '(List) [3,4]\narea1 = 12\n(List) [10,20]\narea2 = 200\n' Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT2 prototype()

[ysh_ALT stdout] Expected '(Null) null\n(Obj) ("area":<Func>)\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT3 propView()

[ysh_ALT stdout] Expected '(Dict) {"x":3,"y":4}\n(Dict) {"x":99,"y":4}\n' Got ''
[ysh_ALT status] Expected 3, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT4 Mutating method lookup with ->

[ysh_ALT stdout] Expected '5\n8\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT5 Mutating method must be up the prototype chain, not on the object

[ysh_ALT status] Expected 3, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT6 Copy to Dict with dict(), and mutate

[ysh_ALT stdout] Expected '(Obj) ("x":3,"y":4)\n(Dict) {"x":3,"y":4}\n(Obj) ("x":99,"y":4)\n(Dict) {"x":100,"y":4}\n' Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT7 setvar obj.attr = and += and ...

[ysh_ALT stdout] Expected '(Obj) ("x":3,"y":4)\n(Obj) ("x":3,"y":99)\n(Obj) ("x":3,"y":102)\n(Obj) ("x":15,"y":102)\n' Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT8 obj['attr'] not allowed (for now)

[ysh_ALT status] Expected 3, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh9 setvar obj['attr'] = 3 ?

[ysh stdout] Expected '', got '(Obj) ("x":99,"y":4)\n'
[ysh status] Expected 3, got 0

stdout:
(Obj)   ("x":99,"y":4)
stderr:
ysh_ALT9 setvar obj['attr'] = 3 ?

[ysh_ALT status] Expected 3, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT10 can't encode objects as JSON

[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT11 Can all builtin methods with s.upper()

[ysh_ALT stdout] Expected '(Str) "FOO"\n(Str) "--foo"\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT12 invokable Obj must be have prototype containing __invoke__ of value.Proc - type -t

[ysh_ALT stdout] Expected '(List) ["a",{"x":5,"y":6}]\n\ninvokable\n\nno prototype\nno __invoke__ method in prototype\n__invoke__ of wrong type\n' Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT13 Object with longer prototype chain

[ysh_ALT stdout] Expected '(Obj) ("foo":1,"bar":2,"x":3) --> ("foo":42,"bar":[1,2]) --> ("foo":"zz")\n(Obj) (foo: 1, bar: 2, x: 3) --> (foo: 42, bar: [1, 2]) --> (foo: \'zz\')\n' Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 69, in <module>
    tb = sys.exc_info()[2]
AttributeError: 'module' object has no attribute 'exc_info'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47