[lib/] drop etpUi['debug']
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user