Browse Source

Fix test on Python 3

Mike Naberezny 10 năm trước cách đây
mục cha
commit
0be33dcb6a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      supervisor/tests/test_options.py

+ 2 - 2
supervisor/tests/test_options.py

@@ -811,8 +811,8 @@ class ServerOptionsTests(unittest.TestCase):
             instance.read_config(f.name)
             self.fail("nothing raised")
         except ValueError as exc:
-            self.assertTrue(exc.args[0].startswith(
-                'File contains parsing errors: %s' % f.name))
+            self.assertTrue('contains parsing errors:' in exc.args[0])
+            self.assertTrue(f.name in exc.args[0])
         finally:
             f.close()