From 0aca8ebfb15237e60effce06ccff2085516117f6 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 19 Jul 2014 02:23:19 +0200 Subject: Remove self-tests from all files --- module/common/JsEngine.py | 6 ------ module/common/__init__.py | 1 - module/common/packagetools.py | 17 ----------------- 3 files changed, 24 deletions(-) (limited to 'module/common') diff --git a/module/common/JsEngine.py b/module/common/JsEngine.py index 45c9a50a5..46789f64d 100644 --- a/module/common/JsEngine.py +++ b/module/common/JsEngine.py @@ -153,9 +153,3 @@ class JsEngine: def error(self): return _("No js engine detected, please install either Spidermonkey, ossp-js, pyv8 or rhino") - -if __name__ == "__main__": - js = JsEngine() - - test = u'"ü"+"ä"' - js.eval(test) diff --git a/module/common/__init__.py b/module/common/__init__.py index 4b31e848b..e69de29bb 100644 --- a/module/common/__init__.py +++ b/module/common/__init__.py @@ -1 +0,0 @@ -__author__ = 'christian' diff --git a/module/common/packagetools.py b/module/common/packagetools.py index 6fd2d4a38..d5ab4d182 100644 --- a/module/common/packagetools.py +++ b/module/common/packagetools.py @@ -134,20 +134,3 @@ def parseNames(files): packs[name] = [url] return packs - - -if __name__ == "__main__": - from os.path import join - from pprint import pprint - - f = open(join("..", "..", "testlinks2.txt"), "rb") - urls = [(x.strip(), x.strip()) for x in f.readlines() if x.strip()] - f.close() - - print "Having %d urls." % len(urls) - - packs = parseNames(urls) - - pprint(packs) - - print "Got %d urls." % sum([len(x) for x in packs.itervalues()]) -- cgit v1.2.3