From: W. Trevor King Date: Mon, 14 Jun 2010 13:55:08 +0000 (-0400) Subject: Be slightly more path-seperator agnostic in test/*_driver.py X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7e0b5e00b4e42c34d1de702c2fa874cf821d9b16;p=hooke.git Be slightly more path-seperator agnostic in test/*_driver.py --- diff --git a/test/mfp3d_driver.py b/test/mfp3d_driver.py index 984007c..2b99349 100644 --- a/test/mfp3d_driver.py +++ b/test/mfp3d_driver.py @@ -20,7 +20,8 @@ >>> from hooke.hooke import Hooke, HookeRunner >>> h = Hooke() >>> r = HookeRunner() ->>> h = r.run_lines(h, ['load_playlist test/data/vclamp_mfp3d/playlist']) +>>> playlist = os.path.join('test', 'data', 'vclamp_mfp3d', 'playlist') +>>> h = r.run_lines(h, ['load_playlist ' + playlist]) Success diff --git a/test/picoforce_driver.py b/test/picoforce_driver.py index d1345e1..13c0e25 100644 --- a/test/picoforce_driver.py +++ b/test/picoforce_driver.py @@ -20,7 +20,8 @@ >>> from hooke.hooke import Hooke, HookeRunner >>> h = Hooke() >>> r = HookeRunner() ->>> h = r.run_lines(h, ['load_playlist test/data/vclamp_picoforce/playlist']) +>>> playlist = os.path.join('test', 'data', 'vclamp_picoforce', 'playlist') +>>> h = r.run_lines(h, ['load_playlist ' + playlist]) Success diff --git a/test/wtk_driver.py b/test/wtk_driver.py index b8f7e69..f570bc9 100644 --- a/test/wtk_driver.py +++ b/test/wtk_driver.py @@ -36,7 +36,8 @@ Adjust Hooke in case we don't have calibcant installed. Proceed with the test itself. >>> r = HookeRunner() ->>> h = r.run_lines(h, ['load_playlist test/data/vclamp_wtk/playlist']) # doctest: +ELLIPSIS +>>> playlist = os.path.join('test', 'data', 'vclamp_wtk', 'playlist') +>>> h = r.run_lines(h, ['load_playlist ' + playlist]) Success