tests/test-version-install.t
branchstable
changeset 4878 095bab0d0cd7
parent 4877 77e5c733200a
equal deleted inserted replaced
4877:77e5c733200a 4878:095bab0d0cd7
    17   
    17   
    18     evolve  external  * (glob)
    18     evolve  external  * (glob)
    19 
    19 
    20 Test install
    20 Test install
    21 TODO: fix warning
    21 TODO: fix warning
    22 #if py3
       
    23 BROKEN: unicode errors on version number on install
       
    24   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
    22   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
    25   */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
    23   */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
    26     warnings.warn(msg)
    24     warnings.warn(msg)
    27   Traceback (most recent call last):
       
    28     File "*/../setup.py", line *, in <module> (glob)
       
    29       python_requires=py_versions
       
    30     File "*/distutils/core.py", line *, in setup (glob)
       
    31       dist.run_commands()
       
    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'
       
    49   [1]
       
    50 #else
       
    51   $ "$PYTHON" "$TESTDIR/../setup.py" install --root "$TESTTMP/installtest" > /dev/null
       
    52   */distutils/dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
       
    53     warnings.warn(msg)
       
    54 #endif