Be slightly more path-seperator agnostic in test/*_driver.py
authorW. Trevor King <wking@drexel.edu>
Mon, 14 Jun 2010 13:55:08 +0000 (09:55 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 14 Jun 2010 13:55:08 +0000 (09:55 -0400)
test/mfp3d_driver.py
test/picoforce_driver.py
test/wtk_driver.py

index 984007cdc131d0cba2b9f7fd6681f691c2a22244..2b99349c74a438fccd2f9b36e20a82487a0f6a8a 100644 (file)
@@ -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])
 <FilePlaylist playlist.hkp>
 Success
 <BLANKLINE>
index d1345e17dd53e92ba3fc36344ebf9c6c9e031169..13c0e252cf7941f0b054eda3a5694bce6827841a 100644 (file)
@@ -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])
 <FilePlaylist playlist.hkp>
 Success
 <BLANKLINE>
index b8f7e691ed364886d1f095376ae6f344246323c0..f570bc9731ca4595462196bb3d328bed035f918f 100644 (file)
@@ -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])
 <FilePlaylist playlist.hkp>
 Success
 <BLANKLINE>