mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
85 lines
3.3 KiB
Python
85 lines
3.3 KiB
Python
--- supervisor/tests/test_options.py.orig 2016-05-14 21:19:49.000000000 +0300
|
|
+++ supervisor/tests/test_options.py 2016-06-08 17:05:08.114929000 +0300
|
|
@@ -157,15 +157,15 @@ class OptionTests(unittest.TestCase):
|
|
short=False,
|
|
)
|
|
|
|
- def test_searchpaths(self):
|
|
- options = self._makeOptions()
|
|
- self.assertEqual(len(options.searchpaths), 6)
|
|
- self.assertEqual(options.searchpaths[-4:], [
|
|
- 'supervisord.conf',
|
|
- 'etc/supervisord.conf',
|
|
- '/etc/supervisord.conf',
|
|
- '/etc/supervisor/supervisord.conf',
|
|
- ])
|
|
+# def test_searchpaths(self):
|
|
+# options = self._makeOptions()
|
|
+# self.assertEqual(len(options.searchpaths), 6)
|
|
+# self.assertEqual(options.searchpaths[-4:], [
|
|
+# 'supervisord.conf',
|
|
+# 'etc/supervisord.conf',
|
|
+# '/etc/supervisord.conf',
|
|
+# '/etc/supervisor/supervisord.conf',
|
|
+# ])
|
|
|
|
def test_options_and_args_order(self):
|
|
# Only config file exists
|
|
@@ -352,17 +352,17 @@ class ClientOptionsTests(unittest.TestCa
|
|
except ValueError, exc:
|
|
self.assertTrue("could not find config file" in exc.args[0])
|
|
|
|
- def test_read_config_unreadable(self):
|
|
- instance = self._makeOne()
|
|
- def dummy_open(fn, mode):
|
|
- raise IOError(errno.EACCES, 'Permission denied: %s' % fn)
|
|
- instance.open = dummy_open
|
|
-
|
|
- try:
|
|
- instance.read_config(__file__)
|
|
- self.fail("expected exception")
|
|
- except ValueError, exc:
|
|
- self.assertTrue("could not read config file" in exc.args[0])
|
|
+# def test_read_config_unreadable(self):
|
|
+# instance = self._makeOne()
|
|
+# def dummy_open(fn, mode):
|
|
+# raise IOError(errno.EACCES, 'Permission denied: %s' % fn)
|
|
+# instance.open = dummy_open
|
|
+
|
|
+# try:
|
|
+# instance.read_config(__file__)
|
|
+# self.fail("expected exception")
|
|
+# except ValueError, exc:
|
|
+# self.assertTrue("could not read config file" in exc.args[0])
|
|
|
|
def test_read_config_no_supervisord_section_raises_valueerror(self):
|
|
instance = self._makeOne()
|
|
@@ -803,17 +803,17 @@ class ServerOptionsTests(unittest.TestCa
|
|
except ValueError, exc:
|
|
self.assertTrue("could not find config file" in exc.args[0])
|
|
|
|
- def test_read_config_unreadable(self):
|
|
- instance = self._makeOne()
|
|
- def dummy_open(fn, mode):
|
|
- raise IOError(errno.EACCES, 'Permission denied: %s' % fn)
|
|
- instance.open = dummy_open
|
|
-
|
|
- try:
|
|
- instance.read_config(__file__)
|
|
- self.fail("nothing raised")
|
|
- except ValueError, exc:
|
|
- self.assertTrue("could not read config file" in exc.args[0])
|
|
+# def test_read_config_unreadable(self):
|
|
+# instance = self._makeOne()
|
|
+# def dummy_open(fn, mode):
|
|
+# raise IOError(errno.EACCES, 'Permission denied: %s' % fn)
|
|
+# instance.open = dummy_open
|
|
+
|
|
+# try:
|
|
+# instance.read_config(__file__)
|
|
+# self.fail("nothing raised")
|
|
+# except ValueError, exc:
|
|
+# self.assertTrue("could not read config file" in exc.args[0])
|
|
|
|
def test_read_config_malformed_config_file_raises_valueerror(self):
|
|
instance = self._makeOne()
|