12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #! /bin/sh
- required=python
- . test-init.sh
- cp "$am_scriptdir/py-compile" . \
- || fatal_ "failed to fetch auxiliary script py-compile"
- cat > foo.py <<'END'
- '''Module docstring'''
- def foo (*args, **kwargs):
- """Function docstring
- with embedded newline"""
- return 1
- class Foo:
- r"""Class docstring"""
- def __init__(self):
- r'''Method docstring
- with
- embedded
- newlines'''
- pass
- bar = baz = (1, (2,), [3, 4]); zardoz = 0;
- END
- mkdir sub
- cat > sub/bar.py <<'END'
- import Automake.No.Such.Module
- assert False
- END
- mkdir -p 1/_/2/_/3/_
- : > 1/_/2/_/3/_/0.py
- ./py-compile foo.py sub/bar.py 1/_/2/_/3/_/0.py
- py_installed foo.pyc
- py_installed foo.pyo
- py_installed sub/bar.pyc
- py_installed sub/bar.pyo
- py_installed 1/_/2/_/3/_/0.pyc
- py_installed 1/_/2/_/3/_/0.pyo
- :
|