Code review comment for lp://staging/~mitya57/ubuntu/saucy/dh-python/adt

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

not sure why, it still tries to run python3.2 tests.

Doctest: dhpython.interpreter.Interpreter.cache_file ... FAIL
Doctest: dhpython.interpreter.Interpreter.magic_tag ... FAIL
Doctest: dhpython.interpreter.Interpreter.parse ... ok
Doctest: dhpython.interpreter.Interpreter.sitedir ... ok
Doctest: dhpython.pydist._pl2py ... ok
Doctest: dhpython.pydist._translate ... ok
Doctest: dhpython.tools.clean_egg_name ... ok
Doctest: dhpython.tools.relpath ... ok
Doctest: dhpython.version.Version.__add__ ... ok
Doctest: dhpython.version.Version.__lshift__ ... ok
Doctest: dhpython.version.Version.__repr__ ... ok
Doctest: dhpython.version.Version.__rshift__ ... ok
Doctest: dhpython.version.Version.__str__ ... ok
Doctest: dhpython.version.Version.__sub__ ... ok
Doctest: dhpython.version.VersionRange.__repr__ ... ok
Doctest: dhpython.version.VersionRange.__str__ ... ok
Doctest: dhpython.version.VersionRange._parse_pycentral ... ok
Doctest: dhpython.version.VersionRange.parse ... ok
Doctest: dhpython.version.get_requested_versions ... ok

======================================================================
FAIL: Doctest: dhpython.interpreter.Interpreter.cache_file
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/doctest.py", line 2154, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
nose.proxy.AssertionError: Failed doctest test for dhpython.interpreter.Interpreter.cache_file
  File "/usr/share/dh-python/dhpython/interpreter.py", line 282, in cache_file

----------------------------------------------------------------------
File "/usr/share/dh-python/dhpython/interpreter.py", line 293, in dhpython.interpreter.Interpreter.cache_file
Failed example:
    i.cache_file('bar/foo.py', '3.2')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.3/doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest dhpython.interpreter.Interpreter.cache_file[2]>", line 1, in <module>
        i.cache_file('bar/foo.py', '3.2')
      File "/usr/share/dh-python/dhpython/interpreter.py", line 305, in cache_file
        (fname[:-3], self.magic_tag(version), last_char))
      File "/usr/share/dh-python/dhpython/interpreter.py", line 325, in magic_tag
        return self._execute('import imp; print(imp.get_tag())', version)
      File "/usr/share/dh-python/dhpython/interpreter.py", line 440, in _execute
        raise Exception('{} failed with status code {}'.format(command, output['returncode']))
    Exception: python3.2 -c 'import imp; print(imp.get_tag())' failed with status code 127

-------------------- >> begin captured logging << --------------------
dhpython: INFO: cannot initialize 'cmake'
Traceback (most recent call last):
  File "/usr/share/dh-python/dhpython/build/__init__.py", line 32, in <module>
    module.BuildSystem.is_usable()
  File "/usr/share/dh-python/dhpython/build/base.py", line 72, in is_usable
    raise Exception("missing command: %s" % command)
Exception: missing command: cmake
dhpython: DEBUG: invoking: python3.2 -c 'import imp; print(imp.get_tag())'
dhpython: DEBUG: /bin/sh: 1: python3.2: not found

--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: Doctest: dhpython.interpreter.Interpreter.magic_tag
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/doctest.py", line 2154, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
nose.proxy.AssertionError: Failed doctest test for dhpython.interpreter.Interpreter.magic_tag
  File "/usr/share/dh-python/dhpython/interpreter.py", line 315, in magic_tag

----------------------------------------------------------------------
File "/usr/share/dh-python/dhpython/interpreter.py", line 319, in dhpython.interpreter.Interpreter.magic_tag
Failed example:
    i.magic_tag(version='3.2')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.3/doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest dhpython.interpreter.Interpreter.magic_tag[1]>", line 1, in <module>
        i.magic_tag(version='3.2')
      File "/usr/share/dh-python/dhpython/interpreter.py", line 325, in magic_tag
        return self._execute('import imp; print(imp.get_tag())', version)
      File "/usr/share/dh-python/dhpython/interpreter.py", line 440, in _execute
        raise Exception('{} failed with status code {}'.format(command, output['returncode']))
    Exception: python3.2 -c 'import imp; print(imp.get_tag())' failed with status code 127

-------------------- >> begin captured logging << --------------------
dhpython: DEBUG: invoking: python3.2 -c 'import imp; print(imp.get_tag())'
dhpython: DEBUG: /bin/sh: 1: python3.2: not found

--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 19 tests in 0.019s

FAILED (failures=2)

« Back to merge proposal