call site 4 for process.cmdexec
misc/testing/test_update_website.py - line 57
51
52
53
54
55
56
57
58
59
60
61
   def test_run_tests():
       if py.std.sys.platform == "win32":
           py.test.skip("update_website is not supposed to be run from win32")
       pkgpath = setup_pkg('update_website_run_tests')
       errors = update_website.run_tests(pkgpath,
                                         pkgpath.dirpath().join('apigen'),
->                                       captureouterr=True)
       print errors
       assert not errors
       assert pkgpath.join('../apigen').check(dir=True)
       assert pkgpath.join('../apigen/api/sub.foo.html').check(file=True)
bin/_update_website.py - line 43
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
   def run_tests(pkgpath, apigenpath, args='', captureouterr=False):
       """ run the unit tests and build the docs """
       pypath = py.__pkg__.getpath()
       pytestpath = pypath.join('bin/py.test')
       # XXX this would need a Windows specific version if we want to allow
       # running this script on that platform, but currently --apigen doesn't
       # work there anyway...
       apigenscript = pkgpath.join('apigen/apigen.py') # XXX be more general here?
       if not apigenscript.check(file=True):
           apigenscript = pypath.join('apigen/apigen.py')
       cmd = ('APIGENPATH="%s" PYTHONPATH="%s:%s" python '
              '"%s" %s --apigen="%s" "%s"' % (apigenpath, pypath.dirpath(),
                                              pkgpath.dirpath(), pytestpath,
                                              args, apigenscript,
                                              pkgpath))
       if captureouterr:
           cmd += ' > /dev/null 2>&1'
       try:
->         output = py.process.cmdexec(cmd)
       except py.error.Error, e:
           return e.err or str(e)
       return None