Skip to content

Commit

Permalink
[oil-language] Disable float() for now.
Browse files Browse the repository at this point in the history
The build doesn't have all the files we need.
  • Loading branch information
Andy Chu committed Sep 1, 2019
1 parent 247385c commit 840f0e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion oil_lang/builtin_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ def Init(mem):
# TODO: Should these be Bool Int Float Str List Dict?
SetGlobalFunc(mem, 'bool', bool)
SetGlobalFunc(mem, 'int', int)
SetGlobalFunc(mem, 'float', float)

# TODO: Enable float
# OVM: PyOS_string_to_double()
# osh: Python/ovm_stub_pystrtod.c:10: PyOS_string_to_double: Assertion `0' failed.
#SetGlobalFunc(mem, 'float', float)

SetGlobalFunc(mem, 'tuple', tuple)
SetGlobalFunc(mem, 'str', str)
SetGlobalFunc(mem, 'list', list)
Expand Down
2 changes: 1 addition & 1 deletion test/spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ oil-expr() {
}

oil-builtin-funcs() {
sh-spec spec/oil-builtin-funcs.test.sh --cd-tmp --osh-failures-allowed 2 \
sh-spec spec/oil-builtin-funcs.test.sh --cd-tmp --osh-failures-allowed 3 \
$OSH_LIST "$@"
}

Expand Down

0 comments on commit 840f0e2

Please sign in to comment.