[py-svn] pytest commit 286116561e6f: fix bug on windows

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Nov 22 12:42:57 CET 2010


# HG changeset patch -- Bitbucket.org
# Project pytest
# URL http://bitbucket.org/hpk42/pytest/overview
# User holger krekel <holger at merlinux.eu>
# Date 1290426168 -3600
# Node ID 286116561e6feec6e9ce0590f66558c12fb3b338
# Parent  e49e10c37aa055752e225557de5df1692b1c1cc0
fix bug on windows

--- 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)"



More information about the pytest-commit mailing list