diff --git a/siteblocks/runtests.py b/siteblocks/runtests.py
index <HASH>..<HASH> 100755
--- a/siteblocks/runtests.py
+++ b/siteblocks/runtests.py
@@ -1,13 +1,28 @@
 #! /usr/bin/env python
+import sys
+import os
+
 from django.conf import settings
-from django.core.management import call_command
 
 
-if not settings.configured:
-    settings.configure(
-        INSTALLED_APPS=('django.contrib.auth', 'django.contrib.contenttypes', 'siteblocks'),
-        DATABASES={'default': {'ENGINE': 'django.db.backends.sqlite3'}},
-    )
+APP_NAME = 'siteblocks'
+
+
+def main():
+    sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
+
+    if not settings.configured:
+        settings.configure(
+            INSTALLED_APPS=('django.contrib.auth', 'django.contrib.contenttypes', APP_NAME),
+            DATABASES={'default': {'ENGINE': 'django.db.backends.sqlite3'}},
+        )
+
+    from django.test.utils import get_runner
+    runner = get_runner(settings)()
+    failures = runner.run_tests((APP_NAME,))
+
+    sys.exit(failures)
+
 
 if __name__ == '__main__':
-    call_command('test', 'siteblocks')
+    main()
Django <I> test runner adaptation.