Skip to content

Instantly share code, notes, and snippets.

@x10an14
Created October 16, 2016 14:53
Show Gist options
  • Save x10an14/a214406122949bf060c84b80fc386829 to your computer and use it in GitHub Desktop.
Save x10an14/a214406122949bf060c84b80fc386829 to your computer and use it in GitHub Desktop.
Coconut mypy test failing
x10an14@x10Desktop2016:~/Documents/git_projs/coconut$ docker run -it --entrypoint sh coconut_ipython:3.4-alpine
/usr/coconut # make test
pytest --strict -s tests
============================================================================================ test session starts =============================================================================================
platform linux -- Python 3.4.5, pytest-3.0.2, py-1.4.31, pluggy-0.3.1
rootdir: /usr/coconut, inifile:
collected 20 items
tests/main_test.py
> coconut -s -c msg = '<success>'; pmsg = print$(msg); `pmsg`
<success>
.
> python -c from coconut.convenience import parse; exec(parse("msg = '<success>'; pmsg = print$(msg); `pmsg`"))
<success>
.
> ipython --ext coconut -c %coconut msg = '<success>'; pmsg = print$(msg); `pmsg`
<success>
.
> coconut --jupyter
4.2.0
[InstallKernelSpec] Installed kernelspec coconut in /usr/local/share/jupyter/kernels/coconut
[InstallKernelSpec] Installed kernelspec coconut2 in /usr/local/share/jupyter/kernels/coconut2
[InstallKernelSpec] Installed kernelspec coconut3 in /usr/local/share/jupyter/kernels/coconut3
.
> echo "msg = '<success>'; pmsg = print\$(msg); \`pmsg\`" | coconut -s
<success>
.
> coconut-run tests/src/runnable.coco --arg
<success>
.
> coconut-run -n tests/src/runnable.coco --arg
<success>
.
> coconut tests/src/cocotest/python3 tests/dest/cocotest --target 3 --jobs 0
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut tests/src/cocotest/agnostic tests/dest/cocotest --jobs 0
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiled to tests/dest/cocotest/suite.py .
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
> coconut tests/src/runner.coco tests/dest --jobs 0
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut tests/src/extras.coco tests/dest --jobs 0
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --keeplines
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --keeplines
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --keeplines
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --keeplines
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --linenumbers
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --linenumbers
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --linenumbers
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --linenumbers
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --minify
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --minify
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --minify
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --minify
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --mypy
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
mypy: can't read file '/usr/coconut/tests/dest/cocotest/py3_test.py': No such file or directory
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
CoconutException: failed to run MyPy command: ['/usr/local/bin/mypy', '/usr/coconut/tests/dest/cocotest/py3_test.py', '--python-version', '3.4']
Coconut: Exiting due to CoconutException.
F
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --package
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --package
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --package
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --package
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --run
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
<success>
> coconut tests/src/extras.coco tests/dest --run --jobs 0
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --standalone
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --standalone
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --standalone
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --standalone
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --strict
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --strict
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --strict
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --strict
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
> coconut --jobs sys tests/src/cocotest/agnostic tests/dest/cocotest --target 3
Coconut: Compiling tests/src/cocotest/agnostic/__init__.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/util.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/main.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/suite.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/specific.coco ...
Coconut: Compiling tests/src/cocotest/agnostic/tutorial.coco ...
Coconut: Compiled to tests/dest/cocotest/__init__.py .
Coconut: Compiled to tests/dest/cocotest/specific.py .
Coconut: Compiled to tests/dest/cocotest/util.py .
Coconut: Compiled to tests/dest/cocotest/tutorial.py .
Coconut: Compiled to tests/dest/cocotest/main.py .
Coconut: Compiled to tests/dest/cocotest/suite.py .
> coconut --jobs sys tests/src/runner.coco tests/dest --target 3
Coconut: Compiling tests/src/runner.coco ...
Coconut: Compiled to tests/dest/runner.py .
> python tests/dest/runner.py
<success>
> coconut --jobs sys tests/src/extras.coco tests/dest --target 3
Coconut: Compiling tests/src/extras.coco ...
Coconut: Compiled to tests/dest/extras.py .
> python tests/dest/extras.py
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
abc
^
CoconutStyleWarning: found mixing of tabs and spaces (disable --strict to dismiss) (line 1)
pass
CoconutException: a source file/folder must be specified when options that depend on the source are enabled
Coconut: Exiting due to CoconutException.
CoconutException: cannot compile as both --package and --standalone
Coconut: Exiting due to CoconutException.
CoconutException: destination path cannot be given when --nowrite is enabled
Coconut: Exiting due to CoconutException.
<success>
.
> git clone https://github.com/evhub/prisoner.git
Cloning into 'prisoner'...
remote: Counting objects: 706, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 706 (delta 0), reused 0 (delta 0), pack-reused 699
Receiving objects: 100% (706/706), 91.58 KiB | 0 bytes/s, done.
Resolving deltas: 100% (467/467), done.
Checking connectivity... done.
> coconut --jobs sys prisoner --strict
Coconut: Compiling prisoner/prisoner/dilemma.coc ...
Coconut: Compiling prisoner/prisoner/__init__.coc ...
Coconut: Compiling prisoner/prisoner/__main__.coc ...
Coconut: Compiling prisoner/prisoner/bots.coc ...
Coconut: Compiled to prisoner/prisoner/__init__.py .
Coconut: Compiled to prisoner/prisoner/__main__.py .
Coconut: Compiled to prisoner/prisoner/bots.py .
Coconut: Compiled to prisoner/prisoner/dilemma.py .
.
> git clone https://github.com/evhub/pyston.git
Cloning into 'pyston'...
remote: Counting objects: 35286, done.
remote: Total 35286 (delta 0), reused 0 (delta 0), pack-reused 35285
Receiving objects: 100% (35286/35286), 31.79 MiB | 4.14 MiB/s, done.
Resolving deltas: 100% (25969/25969), done.
Checking connectivity... done.
> coconut --jobs sys pyston
Coconut: Compiling pyston/runner.coc ...
Coconut: Compiling pyston/minibenchmarks/nbody_med.coc ...
Coconut: Compiling pyston/minibenchmarks/sqlalchemy_declarative.coc ...
Coconut: Compiling pyston/minibenchmarks/richards.coc ...
Coconut: Compiling pyston/minibenchmarks/go.coc ...
Coconut: Compiling pyston/minibenchmarks/pyxl_bench.coc ...
Coconut: Compiling pyston/minibenchmarks/pyaes.coc ...
Coconut: Compiling pyston/minibenchmarks/interp2.coc ...
Coconut: Compiling pyston/minibenchmarks/pidigits.coc ...
Coconut: Compiling pyston/minibenchmarks/interp.coc ...
Coconut: Compiling pyston/minibenchmarks/sqlalchemy_imperative.coc ...
Coconut: Compiling pyston/minibenchmarks/__init__.coc ...
Coconut: Compiling pyston/minibenchmarks/combined.coc ...
Coconut: Compiling pyston/minibenchmarks/bm_ai.coc ...
Coconut: Compiling pyston/minibenchmarks/chaos.coc ...
Coconut: Compiling pyston/minibenchmarks/fannkuch_med.coc ...
Coconut: Compiling pyston/minibenchmarks/fannkuch.coc ...
Coconut: Compiling pyston/minibenchmarks/schulze.coc ...
Coconut: Compiling pyston/minibenchmarks/raytrace.coc ...
Coconut: Compiling pyston/minibenchmarks/nbody.coc ...
Coconut: Compiling pyston/minibenchmarks/spectral_norm.coc ...
Coconut: Compiling pyston/minibenchmarks/allgroup.coc ...
Coconut: Compiling pyston/minibenchmarks/fasta.coc ...
Coconut: Compiling pyston/minibenchmarks/iobench.coc ...
Coconut: Compiling pyston/minibenchmarks/django_template.coc ...
Coconut: Compiling pyston/minibenchmarks/nq.coc ...
Coconut: Compiling pyston/minibenchmarks/deltablue.coc ...
Coconut: Compiling pyston/microbenchmarks/sre_compile_bench.coc ...
Coconut: Compiling pyston/microbenchmarks/unicode_ctor_bench.coc ...
Coconut: Compiling pyston/microbenchmarks/sre_optimize_unicode.coc ...
Coconut: Compiling pyston/microbenchmarks/getattrfunc_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/gcj_2014_2_b.coc ...
Coconut: Compiling pyston/microbenchmarks/sre_parse_parse.coc ...
Coconut: Compiling pyston/microbenchmarks/empty_loop.coc ...
Coconut: Compiling pyston/microbenchmarks/django_lexing.coc ...
Coconut: Compiling pyston/microbenchmarks/django_variable.coc ...
Coconut: Compiling pyston/microbenchmarks/bm_django.coc ...
Coconut: Compiling pyston/microbenchmarks/megamorphic_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/exceptions_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/thread_contention.coc ...
Coconut: Compiling pyston/microbenchmarks/str_find_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/itertools_chain_bench.coc ...
Coconut: Compiling pyston/microbenchmarks/megamorphic_control_flow.coc ...
Coconut: Compiling pyston/microbenchmarks/simple_sum.coc ...
Coconut: Compiling pyston/microbenchmarks/control_flow_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/django_parsing.coc ...
Coconut: Compiling pyston/microbenchmarks/vecf_add.coc ...
Coconut: Compiling pyston/microbenchmarks/exceptions_2_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/__init__.coc ...
Coconut: Compiling pyston/microbenchmarks/set_sub_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/unicode_split_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/prime_summing.coc ...
Coconut: Compiling pyston/microbenchmarks/oldstyle_iteration.coc ...
Coconut: Compiling pyston/microbenchmarks/str_comparison_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/namedtuple_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/loop.coc ...
Coconut: Compiling pyston/microbenchmarks/repatching.coc ...
Coconut: Compiling pyston/microbenchmarks/function_calls.coc ...
Coconut: Compiling pyston/microbenchmarks/attrs.coc ...
Coconut: Compiling pyston/microbenchmarks/nq2.coc ...
Coconut: Compiling pyston/microbenchmarks/contains_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/fib2.coc ...
Coconut: Compiling pyston/microbenchmarks/gcj_2014_3_b.coc ...
Coconut: Compiling pyston/microbenchmarks/attribute_lookup.coc ...
Coconut: Compiling pyston/microbenchmarks/vecf_dot.coc ...
Coconut: Compiling pyston/microbenchmarks/django_template3_reduced.coc ...
Coconut: Compiling pyston/microbenchmarks/polymorphism.coc ...
Coconut: Compiling pyston/microbenchmarks/django_tiny.coc ...
Coconut: Compiling pyston/microbenchmarks/dict_hashing_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/oldstyle_class_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/lcg.coc ...
Coconut: Compiling pyston/microbenchmarks/tester.coc ...
Coconut: Compiling pyston/microbenchmarks/dict_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/fib.coc ...
Coconut: Compiling pyston/microbenchmarks/iteration.coc ...
Coconut: Compiling pyston/microbenchmarks/re_split_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/dict_globals_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/string_key_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/nested.coc ...
Coconut: Compiling pyston/microbenchmarks/sort.coc ...
Coconut: Compiling pyston/microbenchmarks/tuple_ubench.coc ...
Coconut: Compiling pyston/microbenchmarks/sre_parse_bench.coc ...
Coconut: Compiling pyston/microbenchmarks/closures.coc ...
Coconut: Compiling pyston/microbenchmarks/re_finditer_bench.coc ...
Coconut: Compiling pyston/microbenchmarks/pydigits.coc ...
Coconut: Compiling pyston/microbenchmarks/sre_compile_bench2.coc ...
Coconut: Compiling pyston/microbenchmarks/generator_switching.coc ...
Coconut: Compiling pyston/microbenchmarks/listcomp_bench.coc ...
Coconut: Compiling pyston/microbenchmarks/unwinding.coc ...
Coconut: Compiling pyston/microbenchmarks/re_perf.coc ...
Coconut: Compiling pyston/microbenchmarks/thread_uncontended.coc ...
Coconut: Compiled to pyston/runner.py .
Coconut: Compiled to pyston/minibenchmarks/sqlalchemy_declarative.py .
Coconut: Compiled to pyston/minibenchmarks/pyxl_bench.py .
Coconut: Compiled to pyston/minibenchmarks/nbody_med.py .
Coconut: Compiled to pyston/minibenchmarks/richards.py .
Coconut: Compiled to pyston/minibenchmarks/pidigits.py .
Coconut: Compiled to pyston/minibenchmarks/go.py .
Coconut: Compiled to pyston/minibenchmarks/sqlalchemy_imperative.py .
in pyston/minibenchmarks/__init__.coc:
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
Coconut: Compiled to pyston/minibenchmarks/__init__.py .
Coconut: Compiled to pyston/minibenchmarks/combined.py .
Coconut: Compiled to pyston/minibenchmarks/bm_ai.py .
Coconut: Compiled to pyston/minibenchmarks/pyaes.py .
Coconut: Compiled to pyston/minibenchmarks/fannkuch_med.py .
Coconut: Compiled to pyston/minibenchmarks/fannkuch.py .
Coconut: Compiled to pyston/minibenchmarks/schulze.py .
Coconut: Compiled to pyston/minibenchmarks/raytrace.py .
Coconut: Compiled to pyston/minibenchmarks/chaos.py .
Coconut: Compiled to pyston/minibenchmarks/spectral_norm.py .
Coconut: Compiled to pyston/minibenchmarks/allgroup.py .
Coconut: Compiled to pyston/minibenchmarks/nbody.py .
Coconut: Compiled to pyston/minibenchmarks/fasta.py .
Coconut: Compiled to pyston/minibenchmarks/django_template.py .
Coconut: Compiled to pyston/minibenchmarks/interp2.py .
Coconut: Compiled to pyston/minibenchmarks/nq.py .
Coconut: Compiled to pyston/microbenchmarks/sre_compile_bench.py .
Coconut: Compiled to pyston/microbenchmarks/unicode_ctor_bench.py .
Coconut: Compiled to pyston/microbenchmarks/sre_optimize_unicode.py .
Coconut: Compiled to pyston/minibenchmarks/iobench.py .
Coconut: Compiled to pyston/microbenchmarks/getattrfunc_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/sre_parse_parse.py .
Coconut: Compiled to pyston/minibenchmarks/interp.py .
Coconut: Compiled to pyston/microbenchmarks/empty_loop.py .
Coconut: Compiled to pyston/microbenchmarks/gcj_2014_2_b.py .
Coconut: Compiled to pyston/microbenchmarks/django_variable.py .
Coconut: Compiled to pyston/microbenchmarks/django_lexing.py .
Coconut: Compiled to pyston/microbenchmarks/exceptions_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/megamorphic_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/str_find_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/bm_django.py .
Coconut: Compiled to pyston/microbenchmarks/thread_contention.py .
Coconut: Compiled to pyston/microbenchmarks/itertools_chain_bench.py .
Coconut: Compiled to pyston/microbenchmarks/simple_sum.py .
Coconut: Compiled to pyston/microbenchmarks/control_flow_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/megamorphic_control_flow.py .
Coconut: Compiled to pyston/microbenchmarks/django_parsing.py .
in pyston/microbenchmarks/__init__.coc:
CoconutStyleWarning: missing new line at end of file (disable --strict to dismiss) (line 1)
Coconut: Compiled to pyston/microbenchmarks/__init__.py .
Coconut: Compiled to pyston/microbenchmarks/vecf_add.py .
Coconut: Compiled to pyston/microbenchmarks/unicode_split_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/exceptions_2_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/prime_summing.py .
Coconut: Compiled to pyston/microbenchmarks/oldstyle_iteration.py .
Coconut: Compiled to pyston/microbenchmarks/set_sub_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/str_comparison_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/loop.py .
Coconut: Compiled to pyston/microbenchmarks/repatching.py .
Coconut: Compiled to pyston/microbenchmarks/namedtuple_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/attrs.py .
Coconut: Compiled to pyston/microbenchmarks/contains_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/fib2.py .
Coconut: Compiled to pyston/microbenchmarks/function_calls.py .
Coconut: Compiled to pyston/microbenchmarks/attribute_lookup.py .
Coconut: Compiled to pyston/microbenchmarks/vecf_dot.py .
Coconut: Compiled to pyston/microbenchmarks/gcj_2014_3_b.py .
Coconut: Compiled to pyston/microbenchmarks/polymorphism.py .
Coconut: Compiled to pyston/minibenchmarks/deltablue.py .
Coconut: Compiled to pyston/microbenchmarks/dict_hashing_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/django_tiny.py .
Coconut: Compiled to pyston/microbenchmarks/oldstyle_class_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/lcg.py .
Coconut: Compiled to pyston/microbenchmarks/dict_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/fib.py .
Coconut: Compiled to pyston/microbenchmarks/iteration.py .
Coconut: Compiled to pyston/microbenchmarks/nq2.py .
Coconut: Compiled to pyston/microbenchmarks/re_split_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/dict_globals_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/string_key_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/tester.py .
Coconut: Compiled to pyston/microbenchmarks/nested.py .
Coconut: Compiled to pyston/microbenchmarks/tuple_ubench.py .
Coconut: Compiled to pyston/microbenchmarks/sre_parse_bench.py .
Coconut: Compiled to pyston/microbenchmarks/closures.py .
Coconut: Compiled to pyston/microbenchmarks/re_finditer_bench.py .
Coconut: Compiled to pyston/microbenchmarks/sort.py .
Coconut: Compiled to pyston/microbenchmarks/generator_switching.py .
Coconut: Compiled to pyston/microbenchmarks/pydigits.py .
Coconut: Compiled to pyston/microbenchmarks/unwinding.py .
Coconut: Compiled to pyston/microbenchmarks/listcomp_bench.py .
Coconut: Compiled to pyston/microbenchmarks/re_perf.py .
Coconut: Compiled to pyston/microbenchmarks/sre_compile_bench2.py .
Coconut: Compiled to pyston/microbenchmarks/thread_uncontended.py .
Coconut: Compiled to pyston/microbenchmarks/django_template3_reduced.py .
.
================================================================================================== FAILURES ==================================================================================================
_________________________________________________________________________________________ TestCompilation.test_mypy __________________________________________________________________________________________
self = <tests.main_test.TestCompilation testMethod=test_mypy>
def test_mypy(self):
> run(["--mypy"])
tests/main_test.py:290:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/main_test.py:171: in run
comp_3(args)
tests/main_test.py:141: in comp_3
comp(path="cocotest", folder="python3", args=["--target", "3"] + args)
tests/main_test.py:88: in comp
call_coconut([source, compdest] + args)
tests/main_test.py:74: in call_coconut
call(["coconut"] + args)
tests/main_test.py:67: in call
subprocess.check_call(cmd, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['coconut', '--jobs', 'sys', 'tests/src/cocotest/python3', 'tests/dest/cocotest', '--target', ...],), kwargs = {}, retcode = 1
cmd = ['coconut', '--jobs', 'sys', 'tests/src/cocotest/python3', 'tests/dest/cocotest', '--target', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['coconut', '--jobs', 'sys', 'tests/src/cocotest/python3', 'tests/dest/cocotest', '--target', '3', '--mypy']' returned non-zero exit status 1
../local/lib/python3.4/subprocess.py:558: CalledProcessError
=================================================================================== 1 failed, 19 passed in 2129.05 seconds ===================================================================================
Makefile:22: recipe for target 'test' failed
make: *** [test] Error 1
/usr/coconut #
/usr/coconut #
/usr/coconut #
/usr/coconut # coconut --jobs sys tests/src/cocotest/python3 tests/dest/cocotest --target 3 --mypy
Coconut: Compiling tests/src/cocotest/python3/py3_test.coco ...
mypy: can't read file '/usr/coconut/tests/dest/cocotest/py3_test.py': No such file or directory
Coconut: Compiled to tests/dest/cocotest/py3_test.py .
CoconutException: failed to run MyPy command: ['/usr/local/bin/mypy', '/usr/coconut/tests/dest/cocotest/py3_test.py', '--python-version', '3.4']
Coconut: Exiting due to CoconutException.
/usr/coconut #
/usr/coconut #
/usr/coconut # pwd
/usr/coconut
/usr/coconut # ls -lahF tests/
__init__.py __main__.py __pycache__/ dest/ main_test.py src/
/usr/coconut # ls -lahF tests/src/
__pycache__/ cocotest/ extras.coco runnable.coco runner.coco
/usr/coconut # ls -lahF tests/src/cocotest/python3
python3/ python35/
/usr/coconut # ls -lahF tests/src/cocotest/python3
python3/ python35/
/usr/coconut # ls -lahF tests/src/cocotest/python3/
total 12
drwxrwxr-x 2 root root 4.0K Oct 16 12:22 ./
drwxrwxr-x 6 root root 4.0K Sep 27 18:41 ../
-rw-rw-r-- 1 root root 1000 Oct 16 12:22 py3_test.coco
/usr/coconut # ls -lahF
total 288
drwxr-xr-x 10 root root 4.0K Oct 16 14:41 ./
drwxr-xr-x 32 root root 4.0K Oct 16 14:06 ../
drwxr-xr-x 3 root root 4.0K Oct 16 14:41 .cache/
drwxrwxr-x 8 root root 4.0K Oct 16 13:15 .git/
-rw-rw-r-- 1 root root 645 Oct 16 11:58 .gitignore
-rw-rw-r-- 1 root root 499 Oct 16 12:22 .pre-commit-config.yaml
-rw-rw-r-- 1 root root 527 Oct 16 12:31 .travis.yml
-rw-rw-r-- 1 root root 959 Oct 16 12:24 .travis.yml_docker
-rw-rw-r-- 1 root root 45 Oct 16 11:00 Coconut_Ev01.sublime-project
-rw-rw-r-- 1 root root 4.3K Oct 16 11:00 Coconut_Ev01.sublime-workspace
-rw-rw-r-- 1 root root 73.4K Oct 16 12:22 DOCS.md
-rw-rw-r-- 1 root root 8.8K Oct 16 12:22 FAQ.md
-rw-rw-r-- 1 root root 60.2K Oct 16 12:22 HELP.md
-rw-rw-r-- 1 root root 10.5K Oct 16 12:22 LICENSE.txt
-rw-rw-r-- 1 root root 105 Oct 16 12:22 MANIFEST.in
-rw-rw-r-- 1 root root 950 Oct 16 12:39 Makefile
-rw-rw-r-- 1 root root 1.8K Sep 27 18:41 README.rst
drwxrwxr-x 9 root root 4.0K Oct 16 14:06 coconut/
-rw-rw-r-- 1 root root 1.6K Sep 27 18:41 conf.py
drwxrwxr-x 2 root root 4.0K Oct 16 12:40 dockerfiles/
-rw-rw-r-- 1 root root 30.8K Sep 28 22:50 pre-commit-alpine-build-error
-rw-rw-r-- 1 root root 137 Sep 27 18:41 readthedocs.yml
drwxrwxr-x 2 root root 4.0K Oct 16 12:22 reqs/
-rw-rw-r-- 1 root root 26 Sep 27 18:41 setup.cfg
-rw-rw-r-- 1 root root 7.5K Oct 16 12:22 setup.py
drwxrwxr-x 6 root root 4.0K Oct 16 14:48 tests/
/usr/coconut # ls -lahF tests/
total 40
drwxrwxr-x 6 root root 4.0K Oct 16 14:48 ./
drwxr-xr-x 10 root root 4.0K Oct 16 14:41 ../
-rw-rw-r-- 1 root root 771 Sep 27 18:41 __init__.py
-rw-rw-r-- 1 root root 1.3K Sep 27 18:41 __main__.py
drwxr-xr-x 2 root root 4.0K Oct 16 14:06 __pycache__/
drwxr-xr-x 3 root root 4.0K Oct 16 14:48 dest/
-rw-rw-r-- 1 root root 8.5K Oct 16 12:39 main_test.py
drwxrwxr-x 4 root root 4.0K Oct 16 14:06 src/
/usr/coconut # cd tests/
/usr/coconut/tests # ls -lahF dest/
total 12
drwxr-xr-x 3 root root 4.0K Oct 16 14:48 ./
drwxrwxr-x 6 root root 4.0K Oct 16 14:48 ../
drwxr-xr-x 2 root root 4.0K Oct 16 14:49 cocotest/
/usr/coconut/tests # ls -lahF dest/cocotest/
total 24
drwxr-xr-x 2 root root 4.0K Oct 16 14:49 ./
drwxr-xr-x 3 root root 4.0K Oct 16 14:48 ../
-rw-r--r-- 1 root root 11.3K Oct 16 14:48 __coconut__.py
-rw-r--r-- 1 root root 1.9K Oct 16 14:49 py3_test.py
/usr/coconut/tests # vim dest/cocotest/py3_test.py
sh: vim: not found
/usr/coconut/tests # cat dest/cocotest/py3_test.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x48ecd19
# Compiled with Coconut version 1.2.0-post_dev10 [Colonel]
# Coconut Header: --------------------------------------------------------
import sys as _coconut_sys, os.path as _coconut_os_path
_coconut_file_path = _coconut_os_path.dirname(_coconut_os_path.abspath(__file__))
_coconut_sys.path.insert(0, _coconut_file_path)
from __coconut__ import _coconut, _coconut_MatchError, _coconut_tail_call, _coconut_tco, _coconut_igetitem, _coconut_compose, _coconut_pipe, _coconut_starpipe, _coconut_backpipe, _coconut_backstarpipe, _coconut_bool_and, _coconut_bool_or, _coconut_minus, _coconut_tee, _coconut_map
from __coconut__ import *
_coconut_sys.path.remove(_coconut_file_path)
# Compiled Coconut: ------------------------------------------------------
def py3_test():
"""Performs Python-3-specific tests."""
x = 5
assert x == 5
def set_x(y):
nonlocal x
x = y
set_x(3)
assert x == 3
def set_x_again(y):
nonlocal x
x = y
set_x_again(10)
assert x == 10
assert {x: x for x in range(5)} == {0: 0, 1: 1, 2: 2, 3: 3, 4: 4}
def head_tail(l):
head, *tail = l
return head, tail
assert head_tail((_coconut_lazy_item() for _coconut_lazy_item in (lambda: 1, lambda: 2, lambda: 3))) == (1, [2, 3])
class metaA(type):
def __instancecheck__(cls, inst):
return True
class A(metaclass=metaA):
pass
assert isinstance(A(), A)
assert isinstance("", A)
assert isinstance(5, A)
assert (tuple)(py_map(lambda x: x + 1, range(4))) == (1, 2, 3, 4)
assert (tuple)(py_zip(range(3), range(3))) == ((0, 0), (1, 1), (2, 2))
class B(*()):
pass
assert isinstance(B(), B)
e = exec
test = {}
e("a=1", test)
assert test["a"] == 1
def keyword_only(*, a):
return a
assert keyword_only(a=10) == 10
return True
/usr/coconut/tests #
/usr/coconut/tests #
/usr/coconut/tests # /usr/local/bin/mypy /usr/coconut/tests/dest/cocotest/py3_test.py --python-version 3.4
dest/cocotest/py3_test.py: note: In member "py3_test" of class "B":
dest/cocotest/py3_test.py:48: error: Parse error before *
/usr/coconut/tests #
/usr/coconut/tests #
/usr/coconut/tests #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment