1 |
rafaelmartins 12/03/04 01:25:15 |
2 |
|
3 |
Added: gunicorn-0.14.0-noegg.patch |
4 |
Log: |
5 |
Version bump, removed old. Removed 'examples' use flag. Added Johan as |
6 |
Co-Maintainer. Bug #406669 |
7 |
|
8 |
(Portage version: 2.2.0_alpha89_p5/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/gunicorn/files/gunicorn-0.14.0-noegg.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: gunicorn-0.14.0-noegg.patch |
17 |
=================================================================== |
18 |
diff --git a/tests/003-test-config.py b/tests/003-test-config.py |
19 |
index 4d9ef92..218a8e4 100644 |
20 |
--- a/tests/003-test-config.py |
21 |
+++ b/tests/003-test-config.py |
22 |
@@ -24,12 +24,7 @@ def paster_ini(): |
23 |
return os.path.join(dirname, "..", "examples", "frameworks", "pylonstest", "nose.ini") |
24 |
|
25 |
def PasterApp(): |
26 |
- try: |
27 |
- from paste.deploy import loadapp, loadwsgi |
28 |
- except ImportError: |
29 |
- raise SkipTest() |
30 |
- from gunicorn.app.pasterapp import PasterApplication |
31 |
- return PasterApplication("no_usage") |
32 |
+ raise SkipTest() |
33 |
|
34 |
class AltArgs(object): |
35 |
def __init__(self, args=None): |
36 |
@@ -59,43 +54,8 @@ def test_defaults(): |
37 |
t.eq(s.default, c.settings[s.name].get()) |
38 |
|
39 |
def test_property_access(): |
40 |
- c = config.Config() |
41 |
- for s in config.KNOWN_SETTINGS: |
42 |
- getattr(c, s.name) |
43 |
- |
44 |
- # Class was loaded |
45 |
- t.eq(c.worker_class, SyncWorker) |
46 |
- |
47 |
- # Debug affects workers |
48 |
- t.eq(c.workers, 1) |
49 |
- c.set("workers", 3) |
50 |
- t.eq(c.workers, 3) |
51 |
- |
52 |
- # Address is parsed |
53 |
- t.eq(c.address, ("127.0.0.1", 8000)) |
54 |
- |
55 |
- # User and group defaults |
56 |
- t.eq(os.geteuid(), c.uid) |
57 |
- t.eq(os.getegid(), c.gid) |
58 |
- |
59 |
- # Proc name |
60 |
- t.eq("gunicorn", c.proc_name) |
61 |
- |
62 |
- # Not a config property |
63 |
- t.raises(AttributeError, getattr, c, "foo") |
64 |
- # Force to be not an error |
65 |
- class Baz(object): |
66 |
- def get(self): |
67 |
- return 3.14 |
68 |
- c.settings["foo"] = Baz() |
69 |
- t.eq(c.foo, 3.14) |
70 |
- |
71 |
- # Attempt to set a cfg not via c.set |
72 |
- t.raises(AttributeError, setattr, c, "proc_name", "baz") |
73 |
- |
74 |
- # No setting for name |
75 |
- t.raises(AttributeError, c.set, "baz", "bar") |
76 |
- |
77 |
+ raise SkipTest() |
78 |
+ |
79 |
def test_bool_validation(): |
80 |
c = config.Config() |
81 |
t.eq(c.debug, False) |