Tox test suite should check for available python installations

Issue #30 on hold
David Shrewsbury
created an issue

Running the test suite fails on systems that do not have older versions of Python installed (2.5, 2.6, etc.). It would be nice if the tox tests took this into account so that developers adding new features can run the test suite without having the older versions.

Comments (6)

  1. David Shrewsbury reporter

    Example failure output when run on Ubuntu 12.04:

    ========================================================== FAILURES ==========================================================
    ____________________________________________________ test_report_protocol ____________________________________________________
    
    newconfig = <function newconfig at 0x2464f50>
    
        def test_report_protocol(newconfig):
            config = newconfig([], """
                    [testenv:py26]
                    deps=xy
            """)
            class Popen:
                def __init__(self, *args, **kwargs):
                    pass
                def communicate(self):
                    return "", ""
                def wait(self):
                    pass
        
            session = Session(config, popen=Popen,
                    Report=ReportExpectMock)
            report = session.report
            report.expect("using")
            venv = session.getvenv("py26")
            venv.update()
    >       report.expect("logpopen")
    E       AssertionError: looking for logpopen('*'), no reports found at >=1 in [('using', 'tox.ini: /tmp/pytest-14/test_report_protocol0/tox.ini'), ('logaction', <tox._cmdline.Action object at 0x273c050>), ('verbosity0', '  create: no existing environment found')]
    
    /mnt/disk2/shrews/Devel/mercurial/tox/tests/test_z_cmdline.py:30: AssertionError
    ------------------------------------------------------ Captured stdout -------------------------------------------------------
    ('using', 'tox.ini: /tmp/pytest-14/test_report_protocol0/tox.ini')
    ('logaction', <tox._cmdline.Action object at 0x273c050>)
    ('verbosity0', '  create: no existing environment found')
    
  2. Log in to comment