From 7e0b5e00b4e42c34d1de702c2fa874cf821d9b16 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 14 Jun 2010 09:55:08 -0400 Subject: [PATCH] Be slightly more path-seperator agnostic in test/*_driver.py --- test/mfp3d_driver.py | 3 ++- test/picoforce_driver.py | 3 ++- test/wtk_driver.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.26.2