[py-svn] r7299 - py/dist/py/path/local

hpk at codespeak.net hpk at codespeak.net
Tue Nov 16 17:53:52 CET 2004


Author: hpk
Date: Tue Nov 16 17:53:52 2004
New Revision: 7299

Modified:
   py/dist/py/path/local/test_local.py
Log:
fixed the choice of binaries somewhat


Modified: py/dist/py/path/local/test_local.py
==============================================================================
--- py/dist/py/path/local/test_local.py	(original)
+++ py/dist/py/path/local/test_local.py	Tue Nov 16 17:53:52 2004
@@ -107,7 +107,7 @@
         assert tmpdir.join('test2') == new
 
     def test_chdir(self):
-        tmpdir = self.tmpdir 
+        tmpdir = self.tmpdir.realpath()
         old = local() 
         try:
             res = tmpdir.chdir()
@@ -140,7 +140,7 @@
     disabled = py.std.sys.platform == 'win32' 
 
     def test_sysfind(self):
-        x = py.path.local.sysfind('ls')
+        x = py.path.local.sysfind('test')
         assert x.check(file=1) 
         py.test.raises(py.path.NotFound, """
             py.path.local.sysfind('jaksdkasldqwe')
@@ -173,7 +173,7 @@
             assert out.find(x.basename) != -1 
 
     def test_sysexec_failing(self):
-        x = py.path.local.sysfind('ls') 
+        x = py.path.local.sysfind('false') 
         py.test.raises(py.process.cmdexec.Error, """
             x.sysexec('aksjdkasjd')
         """)



More information about the pytest-commit mailing list