diff -r 71a5bc0f0398 -r 0a0e603215d7 tests/run.py --- a/tests/run.py Fri May 15 12:37:01 2009 +0200 +++ b/tests/run.py Fri May 15 15:29:41 2009 +0200 @@ -9,6 +9,7 @@ os.path.join(appengine_location, 'lib', 'django'), os.path.join(appengine_location, 'lib', 'webob'), os.path.join(appengine_location, 'lib', 'yaml', 'lib'), + os.path.join(appengine_location, 'lib', 'antlr3'), appengine_location, os.path.join(HERE, 'app'), os.path.join(HERE, 'thirdparty', 'coverage'), @@ -32,7 +33,9 @@ def afterTest(self, test): from google.appengine.api import apiproxy_stub_map datastore = apiproxy_stub_map.apiproxy.GetStub('datastore') - datastore.Clear() + # clear datastore iff one is available + if datastore is not None: + datastore.Clear() def main():