From 1e3f6739c1baae1e28903cba3a66767fb12dbf31 2013-10-04 23:52:34 From: MinRK Date: 2013-10-04 23:52:34 Subject: [PATCH] test WinHPC launchers on all platforms the tests don't actually launch anything, they just write template files, so they can run on any platform. --- diff --git a/IPython/parallel/tests/test_launcher.py b/IPython/parallel/tests/test_launcher.py index 30421cc..c59a726 100644 --- a/IPython/parallel/tests/test_launcher.py +++ b/IPython/parallel/tests/test_launcher.py @@ -177,9 +177,17 @@ class TestSSHEngineLauncher(SSHTest, LauncherTest, TestCase): # Windows Launcher Tests #------------------------------------------------------------------------------- -if sys.platform.startswith("win"): - class TestWinHPCControllerLauncher(ControllerLauncherTest, TestCase): - launcher_class = launcher.WindowsHPCControllerLauncher +class WinHPCTest: + """Tests for WinHPC Launchers""" + def test_batch_template(self): + launcher = self.build_launcher() + job_file = os.path.join(self.profile_dir, launcher.job_file_name) + self.assertEqual(launcher.job_file, job_file) + launcher.write_job_file(1) + self.assertTrue(os.path.isfile(job_file)) + +class TestWinHPCControllerLauncher(WinHPCTest, ControllerLauncherTest, TestCase): + launcher_class = launcher.WindowsHPCControllerLauncher - class TestWinHPCEngineSetLauncher(EngineSetLauncherTest, TestCase): - launcher_class = launcher.WindowsHPCEngineSetLauncher +class TestWinHPCEngineSetLauncher(WinHPCTest, EngineSetLauncherTest, TestCase): + launcher_class = launcher.WindowsHPCEngineSetLauncher