tests/run.py
changeset 2314 0a0e603215d7
parent 2298 c7c331ed9a49
child 2402 c4958af14634
--- 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():