minor fixes for test suite

This commit is contained in:
roberto@precise64
2012-03-28 12:40:20 +02:00
parent 57d4cd9fc9
commit 1a173c849f
2 changed files with 11 additions and 2 deletions
+8 -2
View File
@@ -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
+3
View File
@@ -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++) {