fix bug on windows

This commit is contained in:
holger krekel 2010-11-22 12:42:48 +01:00
parent 0357d3afda
commit 2458c139e4
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ class TmpTestdir:
def _getpybinargs(self, scriptname): def _getpybinargs(self, scriptname):
if not self.request.config.getvalue("notoolsonpath"): if not self.request.config.getvalue("notoolsonpath"):
import pytest import pytest
script = pytest.__file__.strip("co") script = pytest.__file__.rstrip("co")
assert script, "script %r not found" % scriptname assert script, "script %r not found" % scriptname
# XXX we rely on script refering to the correct environment # XXX we rely on script refering to the correct environment
# we cannot use "(py.std.sys.executable,script)" # we cannot use "(py.std.sys.executable,script)"