[lib/] drop etpUi['debug']

This commit is contained in:
Fabio Erculiani
2012-11-06 20:13:49 +01:00
parent 15c6fc1b77
commit 2512df68ad
16 changed files with 2 additions and 66 deletions
-5
View File
@@ -373,11 +373,6 @@ else:
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -46,10 +46,6 @@ class ConstTest(unittest.TestCase):
self.assertTrue(os.getgid() == 0)
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -56,10 +56,6 @@ class CoreTest(unittest.TestCase):
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -928,10 +928,6 @@ class EntropyRepositoryTest(unittest.TestCase):
test_db.close()
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -235,10 +235,6 @@ class DepTest(unittest.TestCase):
self.assertEqual(outcome, expected_outcome)
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
et.kill_threads()
raise SystemExit(0)
-4
View File
@@ -57,10 +57,6 @@ class FetchersTest(unittest.TestCase):
os.remove(path_to_save)
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -110,10 +110,6 @@ class MiscTest(unittest.TestCase):
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -291,10 +291,6 @@ class MiscTest(unittest.TestCase):
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -34,10 +34,6 @@ class QATest(unittest.TestCase):
self.assertTrue(self.QA.entropy_package_checks(pkg))
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-3
View File
@@ -15,9 +15,6 @@ sys.path.insert(0,'../')
from entropy.const import etpSys, etpUi
import entropy.tools
etpSys['unittest'] = True
if "--debug" in sys.argv:
sys.argv.remove("--debug")
etpUi['debug'] = True
from tests import db, client, server, misc, fetchers, tools, dep, i18n, spm, \
qa, core, security, const
-4
View File
@@ -127,10 +127,6 @@ class SecurityTest(unittest.TestCase):
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -164,10 +164,6 @@ class EntropyRepositoryTest(unittest.TestCase):
self.assertEqual(None, etpConst.get(const_key))
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -265,10 +265,6 @@ class SpmTest(unittest.TestCase):
del os.environ['ETP_PORTAGE_CONDITIONAL_DEPS_ENABLE']
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
et.kill_threads()
raise SystemExit(0)
+1 -5
View File
@@ -10,7 +10,7 @@ from entropy.client.interfaces import Client
from entropy.services.client import WebService
from entropy.client.services.interfaces import Document, DocumentFactory, \
DocumentList, ClientWebService
from entropy.const import etpConst, etpUi, const_convert_to_rawstring, \
from entropy.const import etpConst, const_convert_to_rawstring, \
const_convert_to_unicode, const_get_stringtype
import entropy.tools
import tests._misc as _misc
@@ -125,10 +125,6 @@ class EntropyWebServicesTest(unittest.TestCase):
test_repo.close()
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
+1 -5
View File
@@ -10,7 +10,7 @@ from entropy.client.interfaces import Client
from entropy.services.client import WebService
from entropy.client.services.interfaces import Document, DocumentFactory, \
DocumentList, ClientWebService
from entropy.const import etpConst, etpUi, const_convert_to_rawstring, \
from entropy.const import etpConst, const_convert_to_rawstring, \
const_convert_to_unicode, const_get_stringtype
import entropy.tools
import tests._misc as _misc
@@ -982,10 +982,6 @@ class EntropyWebServicesTest(unittest.TestCase):
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
entropy.tools.kill_threads()
raise SystemExit(0)
-4
View File
@@ -574,10 +574,6 @@ class ToolsTest(unittest.TestCase):
self.assertEqual(path_perms, new_path_perms)
if __name__ == '__main__':
if "--debug" in sys.argv:
sys.argv.remove("--debug")
from entropy.const import etpUi
etpUi['debug'] = True
unittest.main()
et.kill_threads()
raise SystemExit(0)