From 2458c139e40d875cb19c7f173c6e0ad2562ad2f0 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 22 Nov 2010 12:42:48 +0100 Subject: [PATCH] fix bug on windows --- _pytest/pytester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/pytester.py b/_pytest/pytester.py index 06f0c095b..11ebc4472 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -454,7 +454,7 @@ class TmpTestdir: def _getpybinargs(self, scriptname): if not self.request.config.getvalue("notoolsonpath"): import pytest - script = pytest.__file__.strip("co") + script = pytest.__file__.rstrip("co") assert script, "script %r not found" % scriptname # XXX we rely on script refering to the correct environment # we cannot use "(py.std.sys.executable,script)"