mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-11-21 02:44:32 +00:00
minor fixes for test suite
This commit is contained in:
+8
-2
@@ -4,7 +4,10 @@ if uwsgi.loop == 'gevent':
|
||||
|
||||
print uwsgi.version
|
||||
print uwsgi.workers()
|
||||
uwsgi.cache_set('foo', "Hello World from cache")
|
||||
try:
|
||||
uwsgi.cache_set('foo', "Hello World from cache")
|
||||
except:
|
||||
pass
|
||||
def application(env, start_response):
|
||||
start_response('200 OK', [('Content-Type', 'text/html')])
|
||||
yield "foobar<br/>"
|
||||
@@ -12,4 +15,7 @@ def application(env, start_response):
|
||||
gevent.sleep(10)
|
||||
yield str(env['wsgi.input'].fileno())
|
||||
yield "<h1>Hello World</h1>"
|
||||
yield uwsgi.cache_get('foo')
|
||||
try:
|
||||
yield uwsgi.cache_get('foo')
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -661,6 +661,9 @@ void init_uwsgi_embedded_module() {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
PyDict_SetItemString(up.embedded_dict, "loop", Py_None);
|
||||
}
|
||||
|
||||
PyObject *py_opt_dict = PyDict_New();
|
||||
for (i = 0; i < uwsgi.exported_opts_cnt; i++) {
|
||||
|
||||
Reference in New Issue
Block a user