# HG changeset patch -- Bitbucket.org
# Project pytest
# URL http://bitbucket.org/hpk42/pytest/overview
# User holger krekel <hol...@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)"
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to