Commits

Antonio Cuni committed 3845990

always create the stdout and stderr files when running py.test -s, else we get an file not found error few lines later

Comments (0)

Files changed (1)

lib-python/conftest.py

                 cmd += ' --pdb'
             if self.config.option.capture == 'no':
                 status = os.system(cmd)
+                stdout.write('')
+                stderr.write('')
             else:
                 status = os.system("%s >>%s 2>>%s" %(cmd, stdout, stderr))
             if os.WIFEXITED(status):