tests/test-version-install.t
branchstable
changeset 4877 77e5c733200a
parent 4876 1a47cc2728ff
child 4878 095bab0d0cd7
equal deleted inserted replaced
4876:1a47cc2728ff 4877:77e5c733200a
    16   Enabled extensions:
    16   Enabled extensions:
    17   
    17   
    18     evolve  external  * (glob)
    18     evolve  external  * (glob)
    19 
    19 
    20 Test install
    20 Test install
       
    21 TODO: fix warning
    21 #if py3
    22 #if py3
    22 BROKEN: unicode errors opening the README
    23 BROKEN: unicode errors on version number on install
    23   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
    24   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
       
    25   */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
       
    26     warnings.warn(msg)
    24   Traceback (most recent call last):
    27   Traceback (most recent call last):
    25     File "*/../setup.py", line *, in <module> (glob)
    28     File "*/../setup.py", line *, in <module> (glob)
    26       long_description=open(join(dirname(__file__), 'README')).read(),
    29       python_requires=py_versions
    27     File "*/encodings/ascii.py", line *, in decode (glob)
    30     File "*/distutils/core.py", line *, in setup (glob)
    28       return codecs.ascii_decode(input, self.errors)[0]
    31       dist.run_commands()
    29   UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 460: ordinal not in range(128)
    32     File "*/distutils/dist.py", line *, in run_commands (glob)
       
    33       self.run_command(cmd)
       
    34     File "*/distutils/dist.py", line *, in run_command (glob)
       
    35       cmd_obj.run()
       
    36     File "*/distutils/command/install.py", line *, in run (glob)
       
    37       self.run_command(cmd_name)
       
    38     File "*/distutils/cmd.py", line *, in run_command (glob)
       
    39       self.distribution.run_command(command)
       
    40     File "*/distutils/dist.py", line *, in run_command (glob)
       
    41       cmd_obj.ensure_finalized()
       
    42     File "*/distutils/cmd.py", line *, in ensure_finalized (glob)
       
    43       self.finalize_options()
       
    44     File "*/distutils/command/install_egg_info.py", line *, in finalize_options (glob)
       
    45       to_filename(safe_version(self.distribution.get_version()))
       
    46     File "*/distutils/command/install_egg_info.py", line *, in safe_version (glob)
       
    47       version = version.replace(' ','.')
       
    48   TypeError: a bytes-like object is required, not 'str'
    30   [1]
    49   [1]
    31 #else
    50 #else
    32 TODO: fix warning
       
    33   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
    51   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
    34   */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
    52   */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
    35     warnings.warn(msg)
    53     warnings.warn(msg)
    36 #endif
    54 #endif