Commits

Vinay Sajip  committed 7472839

Refined test.

  • Participants
  • Parent commits 7f724f4

Comments (0)

Files changed (1)

File tests/test_scripts.py

                     with open(fn, 'r') as f:
                         text = f.read()
                     self.assertIn("_resolve('foo', '%s')" % name, text)
-                    first_line = text.split('\n', 1)
                     if options and options['gui'] and os.name == 'nt':
+                        first_line, rest = text.split('\n', 1)
                         self.assertIn('pythonw', first_line)
+
     def test_clobber(self):
         files = self.maker.make('foo = foo:main')
         saved_files = files