From: <cg...@us...> - 2006-10-26 04:28:39
|
Revision: 2967 http://svn.sourceforge.net/jython/?rev=2967&view=rev Author: cgroves Date: 2006-10-25 21:28:18 -0700 (Wed, 25 Oct 2006) Log Message: ----------- Add expected skips and failures. I currently get 20 failures. It'd be nice if someone else ran the tests to see if they get the same ones. Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2006-10-26 04:25:21 UTC (rev 2966) +++ trunk/jython/Lib/test/regrtest.py 2006-10-26 04:28:18 UTC (rev 2967) @@ -372,7 +372,7 @@ sys.path = saved_sys_path - test = test_spec +# test = test_spec if ok > 0: good.append(test) @@ -407,27 +407,14 @@ if verbose: print "CAUTION: stdout isn't compared in verbose mode: a test" print "that passes in verbose mode may fail without it." + if skipped and not quiet: + print count(len(skipped), "test"), "skipped:" + printlist(skipped) + printsurprises(_Expected(_skips), skipped, 'skip') if bad: print count(len(bad), "test"), "failed:" printlist(bad) - if skipped and not quiet: - print count(len(skipped), "test"), "skipped:" - printlist(skipped) - - e = _ExpectedSkips() - plat = sys.platform - if e.isvalid(): - surprise = _Set(skipped) - e.getexpected() - if surprise: - print count(len(surprise), "skip"), \ - "unexpected on", plat + ":" - printlist(surprise) - else: - print "Those skips are all expected on", plat + "." - else: - print "Ask someone to teach regrtest.py about which tests are" - print "expected to get skipped on", plat + "." - + printsurprises(_Expected(_failures), bad, 'fail') ## if single: ## alltests = findtests(testdir, stdtests, nottests) ## for i in range(len(alltests)): @@ -644,6 +631,18 @@ if len(line) > indent: print line +def printsurprises(e, actual, name): + plat = sys.platform + if e.isvalid(): + surprise = _Set(actual) - e.getexpected() + if surprise: + print count(len(surprise), name), \ + "unexpected on", plat + ":" + printlist(surprise) + else: + print "Ask someone to teach regrtest.py about which tests are" + print "expected to %s on %s." % (name, plat) + class _Set: def __init__(self, seq=[]): data = self.data = {} @@ -672,7 +671,7 @@ data.sort() return data -_expectations = { +_skips = { 'win32': """ test_al @@ -983,18 +982,104 @@ test_winreg test_winsound """, + 'java': + """ + test_al + test_asynchat + test_audioop + test_bsddb + test_capi + test_cd + test_cl + test_cmath + test_commands + test_crypt + test_curses + test_dbm + test_dl + test_email + test_email_codecs + test_fcntl + test_fork1 + test_gc + test_gdbm + test_gettext + test_gl + test_grp + test_hotshot + test_imageop + test_imgfile + test_linuxaudiodev + test_locale + test_longexp + test_mmap + test_nis + test_openpty + test_parser + test_poll + test_pty + test_pwd + test_pyexpat + test_regex + test_rgbimg + test_rotor + test_select + test_signal + test_socket_ssl + test_socketserver + test_strop + test_sunaudiodev + test_sundry + test_symtable + test_timing + test_ucn + test_unicode_file + test_unicodedata + test_wave + test_winreg + test_winsound + """ } -class _ExpectedSkips: - def __init__(self): +_failures = { + 'java': + ''' + test_atexit + test_class + test_cpickle + test_descr + test_descrtut + test_doctest2 + test_frozen + test_long_future + test_marshal + test_new + test_pickle + test_pkgimport + test_profilehooks + test_pyclbr + test_sre + test_threaded_import + test_trace + test_uu + test_weakref + test_zlib + ''', +} + +class _Expected: + def __init__(self, expect_dict): self.valid = 0 - if _expectations.has_key(sys.platform): - s = _expectations[sys.platform] + platform = sys.platform + if platform[:4] == 'java': + platform = 'java' + if expect_dict.has_key(platform): + s = expect_dict[platform] self.expected = _Set(s.split()) self.valid = 1 def isvalid(self): - "Return true iff _ExpectedSkips knows about the current platform." + "Return true iff _Expected knows about the current platform." return self.valid def getexpected(self): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2007-01-24 05:34:59
|
Revision: 3062 http://svn.sourceforge.net/jython/?rev=3062&view=rev Author: cgroves Date: 2007-01-23 21:34:58 -0800 (Tue, 23 Jan 2007) Log Message: ----------- count the surprise skips and fails. return 1 as the exit code if there are any or 0 if there are none Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-01-24 05:07:31 UTC (rev 3061) +++ trunk/jython/Lib/test/regrtest.py 2007-01-24 05:34:58 UTC (rev 3062) @@ -407,14 +407,13 @@ if verbose: print "CAUTION: stdout isn't compared in verbose mode: a test" print "that passes in verbose mode may fail without it." + surprises = 0 if skipped and not quiet: print count(len(skipped), "test"), "skipped:" - printlist(skipped) - printsurprises(_Expected(_skips), skipped, 'skip') + surprises += countsurprises(_Expected(_skips), skipped, 'skip') if bad: print count(len(bad), "test"), "failed:" - printlist(bad) - printsurprises(_Expected(_failures), bad, 'fail') + surprises += countsurprises(_Expected(_failures), bad, 'fail') ## if single: ## alltests = findtests(testdir, stdtests, nottests) ## for i in range(len(alltests)): @@ -432,7 +431,7 @@ if memo: savememo(memo,good,bad,skipped) - return len(bad) > 0 + return surprises > 0 STDTESTS = [ @@ -631,17 +630,21 @@ if len(line) > indent: print line -def printsurprises(e, actual, name): - plat = sys.platform - if e.isvalid(): - surprise = _Set(actual) - e.getexpected() +def countsurprises(expected, actual, name): + """returns the number of items in actual that aren't in expected.""" + + printlist(actual) + if expected.isvalid(): + surprise = _Set(actual) - expected.getexpected() if surprise: print count(len(surprise), name), \ - "unexpected on", plat + ":" + "unexpected on", sys.platform + ":" printlist(surprise) + return len(surprise) else: print "Ask someone to teach regrtest.py about which tests are" - print "expected to %s on %s." % (name, plat) + print "expected to %s on %s." % (name, sys.platform) + return 1#Surprising not to know what to expect.... class _Set: def __init__(self, seq=[]): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2007-01-24 06:33:02
|
Revision: 3064 http://svn.sourceforge.net/jython/?rev=3064&view=rev Author: cgroves Date: 2007-01-23 22:33:00 -0800 (Tue, 23 Jan 2007) Log Message: ----------- expect test_mhlib to be skipped on windows Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-01-24 06:14:18 UTC (rev 3063) +++ trunk/jython/Lib/test/regrtest.py 2007-01-24 06:33:00 UTC (rev 3064) @@ -1043,6 +1043,8 @@ test_winsound """ } +if test_support.is_jython and test_support.underlying_system.startswith('win'): + _skips['java'] += 'test_mhlib' _failures = { 'java': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2007-04-18 04:33:02
|
Revision: 3165 http://svn.sourceforge.net/jython/?rev=3165&view=rev Author: cgroves Date: 2007-04-17 21:33:00 -0700 (Tue, 17 Apr 2007) Log Message: ----------- I was overeager in removing test_class from failures last night; it still fails in several of the buildslaves Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-04-18 04:32:12 UTC (rev 3164) +++ trunk/jython/Lib/test/regrtest.py 2007-04-18 04:33:00 UTC (rev 3165) @@ -1050,6 +1050,7 @@ 'java': ''' test_atexit + test_class test_cpickle test_descr test_descrtut This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2007-04-23 03:52:04
|
Revision: 3179 http://svn.sourceforge.net/jython/?rev=3179&view=rev Author: cgroves Date: 2007-04-22 20:52:01 -0700 (Sun, 22 Apr 2007) Log Message: ----------- test_long_future started passing with the CompilerFlags fix from a few days ago Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-04-23 03:45:34 UTC (rev 3178) +++ trunk/jython/Lib/test/regrtest.py 2007-04-23 03:52:01 UTC (rev 3179) @@ -1056,7 +1056,6 @@ test_descrtut test_doctest2 test_frozen - test_long_future test_marshal test_new test_pickle This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2007-04-30 06:57:48
|
Revision: 3201 http://svn.sourceforge.net/jython/?rev=3201&view=rev Author: cgroves Date: 2007-04-29 23:57:46 -0700 (Sun, 29 Apr 2007) Log Message: ----------- adding a modern inspect.py fixed test_doctest2 Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-04-30 06:50:50 UTC (rev 3200) +++ trunk/jython/Lib/test/regrtest.py 2007-04-30 06:57:46 UTC (rev 3201) @@ -1054,7 +1054,6 @@ test_cpickle test_descr test_descrtut - test_doctest2 test_frozen test_marshal test_new This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2007-09-15 21:20:48
|
Revision: 3475 http://jython.svn.sourceforge.net/jython/?rev=3475&view=rev Author: cgroves Date: 2007-09-15 14:20:46 -0700 (Sat, 15 Sep 2007) Log Message: ----------- Update the failure and skip lists for the current state on trunk Add a new mode, --expected. It only runs the tests that aren't expected to fail or be skipped such that the huge amounts of failure spew won't depress otherwise indomitable developers. Rip out all of the commented out single test mode stuff When running skipped and failed tests, print out if a test passes or runs unexpectedly in addition to the inverse. Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-09-15 21:08:30 UTC (rev 3474) +++ trunk/jython/Lib/test/regrtest.py 2007-09-15 21:20:46 UTC (rev 3475) @@ -14,12 +14,12 @@ -a: all -- execute tests in all test(/regrtest.py) dirs on sys.path : broad -- execute tests in all test(/regrtest.py) dirs on sys.path -x: exclude -- arguments are tests to *exclude* -[NOT SUPPORTED -s: single -- run only a single test (see below)] -r: random -- randomize test execution order -m: memo -- save results to file -l: findleaks -- if GC is available detect tests that leak memory -u: use -- specify which special resource intensive tests to run -h: help -- print this text and exit +-e: expected -- run only tests that are expected to run and pass If non-option arguments are present, they are names for tests to run, unless -x is given, in which case they are names for tests not to run. @@ -27,14 +27,6 @@ -v is incompatible with -g and does not compare test output files. --s means to run only a single test and exit. This is useful when -doing memory analysis on the Python interpreter (which tend to consume -too many resources to run the full regression test non-stop). The -file /tmp/pynexttest is read to find the next test to run. If this -file is missing, the first test_*.py file in testdir or on the command -line is used. (actually tempfile.gettempdir() is used instead of -/tmp). - -u is used to specify which special resource intensive tests to run, such as those requiring large file support or network connectivity. The argument is a comma-separated list of words indicating the @@ -69,7 +61,6 @@ # interim stuff -# !!! what about single # !!! minimal (std) tests? def clean_sys_path(): @@ -199,7 +190,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, findleaks=0, - use_resources=None): + use_resources=None, expected=0, allran=1): """Execute a test suite. This also parses command-line options and modifies its behavior @@ -217,7 +208,7 @@ files beginning with test_ will be used. The other default arguments (verbose, quiet, generate, exclude, - single, randomize, findleaks, and use_resources) allow programmers + randomize, findleaks, and use_resources) allow programmers calling main() directly to set the values that would normally be set by flags on the command line. @@ -226,9 +217,9 @@ test_support.record_original_stdout(sys.stdout) try: args = with_indirect_args(sys.argv[1:]) - opts, args = getopt.getopt(args, 'hvgqxrlu:am:', # 's' + opts, args = getopt.getopt(args, 'hvgqxrlu:am:e', ['help', 'verbose', 'quiet', 'generate', - 'exclude', 'random', # 'single', + 'exclude', 'random', 'expected', 'findleaks', 'use=','all','memo=', 'broad','oneonly=']) except getopt.error, msg: @@ -266,10 +257,13 @@ elif o in ('--oneonly',): oneonly = a.split(',') strip_py(oneonly) + allran = 0 elif o in ('-x', '--exclude'): exclude = 1 -## elif o in ('-s', '--single'): -## single = 1 + allran = 0 + elif o in ('-e', '--expected'): + expected = 1 + allran = 0 elif o in ('-r', '--randomize'): randomize = 1 elif o in ('-l', '--findleaks'): @@ -313,17 +307,6 @@ #gc.set_debug(gc.DEBUG_SAVEALL) found_garbage = [] -## if single: -## from tempfile import gettempdir -## filename = os.path.join(gettempdir(), 'pynexttest') -## try: -## fp = open(filename, 'r') -## next = fp.read().strip() -## tests = [next] -## fp.close() -## except IOError: -## pass - strip_py(args) stdtests = STDTESTS[:] @@ -332,16 +315,17 @@ for arg in args: if arg in stdtests: stdtests.remove(arg) + allran = 0 nottests[:0] = args args = [] clean_sys_path() + if args: + allran = 0 tests = tests or args or findalltests(testdir, stdtests, nottests,all=all) testdirs = findtestdirs(all) -## if single: -## tests = tests[:1] if randomize: random.shuffle(tests) test_support.verbose = verbose # Tell tests to be moderately quiet @@ -349,8 +333,11 @@ save_modules = sys.modules.keys() saved_sys_path = sys.path - + skips = _Expected(_skips) + failures = _Expected(_failures) for test in tests: + if expected and (test in skips or test in failures): + continue test_basename = test consider_dirs = testdirs if test_basename in oneonly: @@ -410,23 +397,10 @@ surprises = 0 if skipped and not quiet: print count(len(skipped), "test"), "skipped:" - surprises += countsurprises(_Expected(_skips), skipped, 'skip') + surprises += countsurprises(skips, skipped, 'skip', 'ran', allran) if bad: print count(len(bad), "test"), "failed:" - surprises += countsurprises(_Expected(_failures), bad, 'fail') -## if single: -## alltests = findtests(testdir, stdtests, nottests) -## for i in range(len(alltests)): -## if tests[0] == alltests[i]: -## if i == len(alltests) - 1: -## os.unlink(filename) -## else: -## fp = open(filename, 'w') -## fp.write(alltests[i+1] + '\n') -## fp.close() -## break -## else: -## os.unlink(filename) + surprises += countsurprises(failures, bad, 'fail', 'passed', allran) if memo: savememo(memo,good,bad,skipped) @@ -630,50 +604,23 @@ if len(line) > indent: print line -def countsurprises(expected, actual, name): +def countsurprises(expected, actual, action, antiaction, allran): """returns the number of items in actual that aren't in expected.""" - printlist(actual) - if expected.isvalid(): - surprise = _Set(actual) - expected.getexpected() - if surprise: - print count(len(surprise), name), \ - "unexpected on", sys.platform + ":" - printlist(surprise) - return len(surprise) - else: + if not expected.isvalid(): print "Ask someone to teach regrtest.py about which tests are" - print "expected to %s on %s." % (name, sys.platform) - return 1#Surprising not to know what to expect.... + print "expected to %s on %s." % (action, sys.platform) + return 1#Surprising not to know what to expect.... + good_surprise = expected.getexpected() - set(actual) + if allran and good_surprise: + print count(len(good_surprise), 'test'), antiaction, 'unexpectedly:' + printlist(good_surprise) + bad_surprise = set(actual) - expected.getexpected() + if bad_surprise: + print count(len(bad_surprise), action), "unexpected:" + printlist(bad_surprise) + return len(bad_surprise) -class _Set: - def __init__(self, seq=[]): - data = self.data = {} - for x in seq: - data[x] = 1 - - def __len__(self): - return len(self.data) - - def __sub__(self, other): - "Return set of all elements in self not in other." - result = _Set() - data = result.data = self.data.copy() - for x in other.data: - if x in data: - del data[x] - return result - - def __iter__(self): - return iter(self.data) - - def tolist(self, sorted=1): - "Return _Set elements as a list." - data = self.data.keys() - if sorted: - data.sort() - return data - _skips = { 'win32': """ @@ -1073,7 +1020,6 @@ test_weakref test_winreg test_winsound - test_zipimport """ } if test_support.is_jython and test_support.underlying_system.startswith('win'): @@ -1082,26 +1028,46 @@ _failures = { 'java': ''' + test___all__ test_atexit test_class + test_copy test_cpickle + test_dis test_descr test_descrtut + test_dumbdbm + test_eof + test_file test_frozen + test_hexoct + test_inspect test_imp test_marshal test_new test_pep263 + test_pep277 test_pickle + test_pickletools + test_pkg test_pkgimport + test_posixpath test_profilehooks test_pyclbr + test_quopri + test_random test_shutil + test_slice test_softspace - test_sre + test_syntax + test_tempfile test_threaded_import test_trace - test_weakref + test_ucn + test_unicode + test_urllib + test_xpickle + test_zipimport ''', } @@ -1113,7 +1079,7 @@ platform = 'java' if expect_dict.has_key(platform): s = expect_dict[platform] - self.expected = _Set(s.split()) + self.expected = set(s.split()) self.valid = 1 def isvalid(self): @@ -1129,5 +1095,8 @@ assert self.isvalid() return self.expected + def __contains__(self, key): + return key in self.expected + if __name__ == '__main__': sys.exit(main()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2007-12-17 05:15:46
|
Revision: 3826 http://jython.svn.sourceforge.net/jython/?rev=3826&view=rev Author: pjenvey Date: 2007-12-16 21:15:44 -0800 (Sun, 16 Dec 2007) Log Message: ----------- posixpath's isfile and isdir now work with the extra stat bits added in r3784, allowing test_posixpath to pass Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2007-12-17 00:32:42 UTC (rev 3825) +++ trunk/jython/Lib/test/regrtest.py 2007-12-17 05:15:44 UTC (rev 3826) @@ -1046,7 +1046,6 @@ test_pickle test_pickletools test_pkgimport - test_posixpath test_profilehooks test_pyclbr test_quopri This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-01-23 06:29:07
|
Revision: 4073 http://jython.svn.sourceforge.net/jython/?rev=4073&view=rev Author: pjenvey Date: 2008-01-22 22:28:58 -0800 (Tue, 22 Jan 2008) Log Message: ----------- test_asynchat passes now Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-01-22 04:42:35 UTC (rev 4072) +++ trunk/jython/Lib/test/regrtest.py 2008-01-23 06:28:58 UTC (rev 4073) @@ -936,7 +936,6 @@ """ test_aepack test_al - test_asynchat test_audioop test_bsddb test_bsddb185 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-02-05 05:05:43
|
Revision: 4100 http://jython.svn.sourceforge.net/jython/?rev=4100&view=rev Author: pjenvey Date: 2008-02-04 21:05:41 -0800 (Mon, 04 Feb 2008) Log Message: ----------- test_logging and test_pickletools now pass Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-02-05 03:10:06 UTC (rev 4099) +++ trunk/jython/Lib/test/regrtest.py 2008-02-05 05:05:41 UTC (rev 4100) @@ -974,7 +974,6 @@ test_largefile test_linuxaudiodev test_locale - test_logging test_longexp test_macfs test_macostools @@ -1038,7 +1037,6 @@ test_pep263 test_pep277 test_pickle - test_pickletools test_pkgimport test_profilehooks test_pyclbr This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-02-05 06:18:11
|
Revision: 4101 http://jython.svn.sourceforge.net/jython/?rev=4101&view=rev Author: pjenvey Date: 2008-02-04 22:18:10 -0800 (Mon, 04 Feb 2008) Log Message: ----------- test_iterlen currently fails, test_email fails due to bug #1886758 Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-02-05 05:05:41 UTC (rev 4100) +++ trunk/jython/Lib/test/regrtest.py 2008-02-05 06:18:10 UTC (rev 4101) @@ -1029,9 +1029,11 @@ test_dis test_descr test_descrtut + test_email test_eof test_frozen test_hexoct + test_iterlen test_marshal test_new test_pep263 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-02-05 06:29:46
|
Revision: 4102 http://jython.svn.sourceforge.net/jython/?rev=4102&view=rev Author: pjenvey Date: 2008-02-04 22:29:37 -0800 (Mon, 04 Feb 2008) Log Message: ----------- these will run now Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-02-05 06:18:10 UTC (rev 4101) +++ trunk/jython/Lib/test/regrtest.py 2008-02-05 06:29:37 UTC (rev 4102) @@ -954,9 +954,7 @@ test_dl test_dummy_thread test_dummy_threading - test_email test_email_codecs - test_extcall test_fcntl test_fork1 test_gc @@ -970,7 +968,6 @@ test_imgfile test_import test_ioctl - test_iterlen test_largefile test_linuxaudiodev test_locale This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-02-25 07:48:21
|
Revision: 4176 http://jython.svn.sourceforge.net/jython/?rev=4176&view=rev Author: pjenvey Date: 2008-02-24 23:48:09 -0800 (Sun, 24 Feb 2008) Log Message: ----------- import test_support with its fully qualified name, so its __name__ is 'test.test_support' which CPython 2.3's test_funcattrs expects Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-02-25 03:56:07 UTC (rev 4175) +++ trunk/jython/Lib/test/regrtest.py 2008-02-25 07:48:09 UTC (rev 4176) @@ -56,8 +56,8 @@ import random import StringIO -import test_support -sys.modules['test.test_support'] = test_support +from test import test_support +sys.modules['test_support'] = test_support # interim stuff This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <cg...@us...> - 2008-03-16 20:25:30
|
Revision: 4208 http://jython.svn.sourceforge.net/jython/?rev=4208&view=rev Author: cgroves Date: 2008-03-16 13:25:25 -0700 (Sun, 16 Mar 2008) Log Message: ----------- urllibnet passes on jython Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-03-16 19:27:37 UTC (rev 4207) +++ trunk/jython/Lib/test/regrtest.py 2008-03-16 20:25:25 UTC (rev 4208) @@ -1006,7 +1006,6 @@ test_timing test_unicode_file test_unicodedata - test_urllibnet test_wave test_weakref test_winreg This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-04-02 02:47:04
|
Revision: 4269 http://jython.svn.sourceforge.net/jython/?rev=4269&view=rev Author: pjenvey Date: 2008-04-01 19:47:02 -0700 (Tue, 01 Apr 2008) Log Message: ----------- test_gc and test_weakref no longer skip but fail Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-04-02 01:29:16 UTC (rev 4268) +++ trunk/jython/Lib/test/regrtest.py 2008-04-02 02:47:02 UTC (rev 4269) @@ -957,7 +957,6 @@ test_email_codecs test_fcntl test_fork1 - test_gc test_gdbm test_getargs2 test_gl @@ -1006,7 +1005,6 @@ test_unicode_file test_unicodedata test_wave - test_weakref test_winreg test_winsound """ @@ -1030,6 +1028,7 @@ test_email test_eof test_frozen + test_gc test_hexoct test_iterlen test_marshal @@ -1046,6 +1045,7 @@ test_trace test_ucn test_unicode + test_weakref test_xpickle test_zipimport ''', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-05-29 19:24:43
|
Revision: 4473 http://jython.svn.sourceforge.net/jython/?rev=4473&view=rev Author: pjenvey Date: 2008-05-29 12:24:41 -0700 (Thu, 29 May 2008) Log Message: ----------- don't consider tests skipped due to ResourceDenied as unexpected Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-05-29 17:20:16 UTC (rev 4472) +++ trunk/jython/Lib/test/regrtest.py 2008-05-29 19:24:41 UTC (rev 4473) @@ -293,6 +293,7 @@ good = [] bad = [] skipped = [] + resource_denieds = [] if findleaks: try: @@ -367,6 +368,8 @@ bad.append(test) else: skipped.append(test) + if ok == -2: + resource_denieds.append(test) if findleaks: gc.collect() if gc.garbage: @@ -397,10 +400,10 @@ surprises = 0 if skipped and not quiet: print count(len(skipped), "test"), "skipped:" - surprises += countsurprises(skips, skipped, 'skip', 'ran', allran) + surprises += countsurprises(skips, skipped, 'skip', 'ran', allran, resource_denieds) if bad: print count(len(bad), "test"), "failed:" - surprises += countsurprises(failures, bad, 'fail', 'passed', allran) + surprises += countsurprises(failures, bad, 'fail', 'passed', allran, resource_denieds) if memo: savememo(memo,good,bad,skipped) @@ -472,6 +475,11 @@ indirect_test() finally: sys.stdout = save_stdout + except test_support.ResourceDenied, msg: + if not quiet: + print test, "skipped --", msg + sys.stdout.flush() + return -2 except (ImportError, test_support.TestSkipped), msg: if not quiet: print test, "skipped --", msg @@ -604,7 +612,7 @@ if len(line) > indent: print line -def countsurprises(expected, actual, action, antiaction, allran): +def countsurprises(expected, actual, action, antiaction, allran, resource_denieds): """returns the number of items in actual that aren't in expected.""" printlist(actual) if not expected.isvalid(): @@ -615,7 +623,7 @@ if allran and good_surprise: print count(len(good_surprise), 'test'), antiaction, 'unexpectedly:' printlist(good_surprise) - bad_surprise = set(actual) - expected.getexpected() + bad_surprise = set(actual) - expected.getexpected() - set(resource_denieds) if bad_surprise: print count(len(bad_surprise), action), "unexpected:" printlist(bad_surprise) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-05-29 22:56:24
|
Revision: 4479 http://jython.svn.sourceforge.net/jython/?rev=4479&view=rev Author: pjenvey Date: 2008-05-29 15:56:22 -0700 (Thu, 29 May 2008) Log Message: ----------- expect test_ast to fail for now, until we actually include antlr-runtime Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-05-29 22:52:21 UTC (rev 4478) +++ trunk/jython/Lib/test/regrtest.py 2008-05-29 22:56:22 UTC (rev 4479) @@ -1026,6 +1026,7 @@ _failures = { 'java': ''' + test_ast test_class test_copy test_dis This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-06-02 21:57:03
|
Revision: 4513 http://jython.svn.sourceforge.net/jython/?rev=4513&view=rev Author: pjenvey Date: 2008-06-02 14:57:01 -0700 (Mon, 02 Jun 2008) Log Message: ----------- sort all test lists Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-06-02 20:00:41 UTC (rev 4512) +++ trunk/jython/Lib/test/regrtest.py 2008-06-02 21:57:01 UTC (rev 4513) @@ -600,6 +600,8 @@ """ line = ' ' * indent + x = list(x) + x.sort() for one in map(str, x): w = len(line) + len(one) if line[-1:] == ' ': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-06-13 01:39:01
|
Revision: 4610 http://jython.svn.sourceforge.net/jython/?rev=4610&view=rev Author: pjenvey Date: 2008-06-12 18:38:54 -0700 (Thu, 12 Jun 2008) Log Message: ----------- re-enable test_email after r4609 Modified Paths: -------------- trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2008-06-13 01:34:13 UTC (rev 4609) +++ trunk/jython/Lib/test/regrtest.py 2008-06-13 01:38:54 UTC (rev 4610) @@ -1037,7 +1037,6 @@ test_dis test_descr test_descrtut - test_email test_eof test_frozen test_gc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |