1. memedough
  2. pytest-cov
  3. Pull requests

Pull requests

#4 Declined
Repository
msabramo
Branch
remove_hard_coded_paths
Repository
memedough
Branch
default

Don't rely on hard-coded paths to /usr/local/py27/bin/python, etc.

Author
  1. Marc Abramowitz
Reviewers
Description
No description
  • Learn about pull requests

Comments (5)

  1. Marc Abramowitz author

    Thanks, Marc Schlaich! I went ahead and added a commit to use sys.executable.

    Only problem is now that the test is running for me, it's failing.

      .tox/py26/bin/py.test -k test_dist_missing_data
    ============================================================================= test session starts ==============================================================================
    platform darwin -- Python 2.6.7 -- py-1.4.20 -- pytest-2.5.2
    plugins: cov, xdist
    collected 11 items
    
    test_pytest_cov.py F
    
    =================================================================================== FAILURES ===================================================================================
    ____________________________________________________________________________ test_dist_missing_data ____________________________________________________________________________
    
    testdir = <TmpTestdir local('/private/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pytest-77/testdir/test_dist_missing_data0')>
    
        def test_dist_missing_data(testdir):
            exe = sys.executable
    
            script = testdir.makepyfile(SCRIPT)
    
            result = testdir.runpytest('-v',
                                       '--cov=%s' % script.dirpath(),
                                       '--cov-report=term-missing',
                                       '--dist=load',
                                       '--tx=popen//python=%s' % exe,
                                       script)
    
            result.stdout.fnmatch_lines([
    >               '*- coverage: failed slaves -*'
                    ])
    E       Failed: remains unmatched: '*- coverage: failed slaves -*', see stderr
    
    /Users/marca/dev/hg-repos/pytest-cov/test_pytest_cov.py:246: Failed
    

    Oh well, I guess it's better to know!