Esempio n. 1
0
 def runner():
     from test import regrtest
     env = dict(os.environ)
     try:
         regrtest.runtest(url, 1, False)
     except Exception, e:
         print e
         import traceback
         traceback.print_exc()
Esempio n. 2
0
 def test_regrtest_pyc(self):
     for test in (
         # change the names a bit so we don't have to worry about module unloading or spawning a separate JVM
         # however, this testing approach too limits the tests that can be run, so we should rewrite to
         # use subprocess asap
         'test_types_pyc',
         'test_exceptions_pyc'):
         ok = runtest(test, generate=False, verbose=False, quiet=True, testdir=None,
                      huntrleaks=False, junit_xml=None)
         self.assertTrue(ok > 0)
Esempio n. 3
0
 def test_regrtest_pyc(self):
     for test in (
         # change the names a bit so we don't have to worry about module unloading or spawning a separate JVM
         # however, this testing approach too limits the tests that can be run, so we should rewrite to
         # use subprocess asap
         'test_types_pyc',
         'test_exceptions_pyc'):
         test_times = []
         ok = runtest(test, False, True, test_times)
         print "got", ok
         self.assertTrue(ok > 0)
Esempio n. 4
0
 def test_regrtest_pyc(self):
     for test in (
             # change the names a bit so we don't have to worry about module unloading or spawning a separate JVM
             # however, this testing approach too limits the tests that can be run, so we should rewrite to
             # use subprocess asap
             'test_types_pyc',
             'test_exceptions_pyc'):
         test_times = []
         ok = runtest(test, False, True, test_times)
         print "got", ok
         self.assertTrue(ok > 0)
Esempio n. 5
0
 def test_regrtest_pyc(self):
     for test in (
             # change the names a bit so we don't have to worry about module unloading or spawning a separate JVM
             # however, this testing approach too limits the tests that can be run, so we should rewrite to
             # use subprocess asap
             'test_types_pyc',
             'test_exceptions_pyc'):
         ok = runtest(test,
                      generate=False,
                      verbose=False,
                      quiet=True,
                      testdir=None,
                      huntrleaks=False,
                      junit_xml=None)
         self.assertTrue(ok > 0)