You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(107) |
Dec
(67) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(76) |
Feb
(125) |
Mar
(72) |
Apr
(13) |
May
(18) |
Jun
(12) |
Jul
(129) |
Aug
(47) |
Sep
(1) |
Oct
(36) |
Nov
(128) |
Dec
(124) |
2002 |
Jan
(59) |
Feb
|
Mar
(14) |
Apr
(14) |
May
(72) |
Jun
(9) |
Jul
(3) |
Aug
(5) |
Sep
(18) |
Oct
(65) |
Nov
(28) |
Dec
(12) |
2003 |
Jan
(10) |
Feb
(2) |
Mar
(4) |
Apr
(33) |
May
(21) |
Jun
(9) |
Jul
(29) |
Aug
(34) |
Sep
(4) |
Oct
(8) |
Nov
(15) |
Dec
(4) |
2004 |
Jan
(26) |
Feb
(12) |
Mar
(11) |
Apr
(9) |
May
(7) |
Jun
|
Jul
(5) |
Aug
|
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(10) |
2005 |
Jan
(2) |
Feb
(72) |
Mar
(16) |
Apr
(39) |
May
(48) |
Jun
(97) |
Jul
(57) |
Aug
(13) |
Sep
(16) |
Oct
(24) |
Nov
(100) |
Dec
(24) |
2006 |
Jan
(15) |
Feb
(34) |
Mar
(33) |
Apr
(31) |
May
(79) |
Jun
(64) |
Jul
(41) |
Aug
(64) |
Sep
(31) |
Oct
(46) |
Nov
(55) |
Dec
(37) |
2007 |
Jan
(32) |
Feb
(61) |
Mar
(11) |
Apr
(58) |
May
(46) |
Jun
(30) |
Jul
(94) |
Aug
(93) |
Sep
(86) |
Oct
(69) |
Nov
(125) |
Dec
(177) |
2008 |
Jan
(169) |
Feb
(97) |
Mar
(74) |
Apr
(113) |
May
(120) |
Jun
(334) |
Jul
(215) |
Aug
(237) |
Sep
(72) |
Oct
(189) |
Nov
(126) |
Dec
(160) |
2009 |
Jan
(180) |
Feb
(45) |
Mar
(98) |
Apr
(140) |
May
(151) |
Jun
(71) |
Jul
(107) |
Aug
(119) |
Sep
(73) |
Oct
(121) |
Nov
(14) |
Dec
(6) |
2010 |
Jan
(13) |
Feb
(9) |
Mar
(10) |
Apr
(64) |
May
(3) |
Jun
(16) |
Jul
(7) |
Aug
(23) |
Sep
(17) |
Oct
(37) |
Nov
(5) |
Dec
(8) |
2011 |
Jan
(10) |
Feb
(11) |
Mar
(77) |
Apr
(11) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <fwi...@us...> - 2008-10-16 14:28:01
|
Revision: 5425 http://jython.svn.sourceforge.net/jython/?rev=5425&view=rev Author: fwierzbicki Date: 2008-10-16 14:27:55 +0000 (Thu, 16 Oct 2008) Log Message: ----------- This basic functionality is well tested. Removed Paths: ------------- trunk/jython/bugtests/test109.py Deleted: trunk/jython/bugtests/test109.py =================================================================== --- trunk/jython/bugtests/test109.py 2008-10-16 14:26:23 UTC (rev 5424) +++ trunk/jython/bugtests/test109.py 2008-10-16 14:27:55 UTC (rev 5425) @@ -1,13 +0,0 @@ -""" -Check looping over a dict. -""" - -import support - -L = [] - -for x in {3:'d', 2:'c', 1:'b', 0:'a'}: - L.append(x) -L.sort() -if L != [0, 1, 2, 3]: - support.TestError("Looping over dict should work") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 14:26:34
|
Revision: 5424 http://jython.svn.sourceforge.net/jython/?rev=5424&view=rev Author: fwierzbicki Date: 2008-10-16 14:26:23 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Moved test108 to test_dict_jy Modified Paths: -------------- trunk/jython/Lib/test/test_dict_jy.py Removed Paths: ------------- trunk/jython/bugtests/test108.py Modified: trunk/jython/Lib/test/test_dict_jy.py =================================================================== --- trunk/jython/Lib/test/test_dict_jy.py 2008-10-16 12:42:06 UTC (rev 5423) +++ trunk/jython/Lib/test/test_dict_jy.py 2008-10-16 14:26:23 UTC (rev 5424) @@ -23,6 +23,21 @@ s[7] = 'called' self.assertEquals('called', s.createdInInit) + def testUnhashableKeys(self): + try: + a = {1:2} + except TypeError: + pass + else: + self.fail("list as dict key should raise TypeError") + + try: + a = {{1:2}:3} + except TypeError: + pass + else: + self.fail("dict as dict key should raise TypeError") + class DictCmpTest(unittest.TestCase): "Test for http://bugs.jython.org/issue1031" def testDictCmp(self): Deleted: trunk/jython/bugtests/test108.py =================================================================== --- trunk/jython/bugtests/test108.py 2008-10-16 12:42:06 UTC (rev 5423) +++ trunk/jython/bugtests/test108.py 2008-10-16 14:26:23 UTC (rev 5424) @@ -1,13 +0,0 @@ -""" -Check for lists and dicts as key in a dict. -""" - -import support - -try: - a = {[1]:2} - a = {{1:2}:3} -except TypeError, e: - pass -else: - raise support.TestError("Should fail, lists and dicts not allowed as key") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 12:42:16
|
Revision: 5423 http://jython.svn.sourceforge.net/jython/?rev=5423&view=rev Author: fwierzbicki Date: 2008-10-16 12:42:06 +0000 (Thu, 16 Oct 2008) Log Message: ----------- move test107 to test_jy_internals.py Modified Paths: -------------- trunk/jython/Lib/test/test_jy_internals.py Removed Paths: ------------- trunk/jython/bugtests/test107.py Modified: trunk/jython/Lib/test/test_jy_internals.py =================================================================== --- trunk/jython/Lib/test/test_jy_internals.py 2008-10-16 12:15:26 UTC (rev 5422) +++ trunk/jython/Lib/test/test_jy_internals.py 2008-10-16 12:42:06 UTC (rev 5423) @@ -172,6 +172,60 @@ vars = tb.tb_frame.f_locals self.assertEquals(sorted(vars.items()), [('a',1), ('b',2)]) + def test_frame_info(self): + import sys + from types import ClassType + + def getinfo(): + """ Returns a tuple consisting of: + the name of the current module + the name of the current class or None + the name of the current function + the current line number + """ + try: + 1/0 + except: + tb = sys.exc_info()[-1] + frame = tb.tb_frame.f_back + modulename = frame.f_globals['__name__'] + funcname = frame.f_code.co_name + lineno = frame.f_lineno + + if len(frame.f_code.co_varnames) == 0: + classname = None + else: + self = frame.f_locals[frame.f_code.co_varnames[0]] + myclass = self.__class__ + if type(myclass) == ClassType: + classname = myclass.__name__ + else: + classname = None + + return modulename, classname, funcname, lineno + + def foo(): + x = 99 + g = getinfo() + assert (g[0] == "__main__" or g[0] == "test.test_jy_internals") + self.assertEquals(g[1], None) + self.assertEquals(g[2], "foo") + + class Bar: + def baz(self): + g = getinfo() + assert (g[0] == "__main__" or g[0] == "test.test_jy_internals") + assert (g[1] == "Bar") + assert (g[2] == "baz") + + g = getinfo() + assert (g[0] == "__main__" or g[0] == "test.test_jy_internals") + self.assertEquals(g[1], None) + self.assertEquals(g[2], "test_frame_info") + + foo() + Bar().baz() + def test_main(): test_suite = unittest.TestSuite() test_loader = unittest.TestLoader() Deleted: trunk/jython/bugtests/test107.py =================================================================== --- trunk/jython/bugtests/test107.py 2008-10-16 12:15:26 UTC (rev 5422) +++ trunk/jython/bugtests/test107.py 2008-10-16 12:42:06 UTC (rev 5423) @@ -1,55 +0,0 @@ -""" -Check some internal frame info -""" -import sys -from types import ClassType - -def getinfo(): - """ Returns a tuple consisting of: - the name of the current module - the name of the current class or None - the name of the current function - the current line number - """ - try: - 1/0 - except: - tb = sys.exc_info()[-1] - frame = tb.tb_frame.f_back - modulename = frame.f_globals['__name__'] - funcname = frame.f_code.co_name - lineno = frame.f_lineno - - if len(frame.f_code.co_varnames) == 0: - classname = None - else: - self = frame.f_locals[frame.f_code.co_varnames[0]] - myclass = self.__class__ - if type(myclass) == ClassType: - classname = myclass.__name__ - else: - classname = None - - return modulename, classname, funcname, lineno - -def foo(): - x = 99 - g = getinfo() - assert (g[0] == "__main__" or g[0] == "test107") - assert (g[1] == None) - assert (g[2] == "foo") - -class Bar: - def baz(self): - g = getinfo() - assert (g[0] == "__main__" or g[0] == "test107") - assert (g[1] == "Bar") - assert (g[2] == "baz") - -g = getinfo() -assert (g[0] == "__main__" or g[0] == "test107") -assert (g[1] == None) -assert (g[2] == "<module>") - -foo() -Bar().baz() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 12:15:33
|
Revision: 5422 http://jython.svn.sourceforge.net/jython/?rev=5422&view=rev Author: fwierzbicki Date: 2008-10-16 12:15:26 +0000 (Thu, 16 Oct 2008) Log Message: ----------- First make test107 pass in both python and jython Modified Paths: -------------- trunk/jython/bugtests/test107.py Modified: trunk/jython/bugtests/test107.py =================================================================== --- trunk/jython/bugtests/test107.py 2008-10-16 12:07:24 UTC (rev 5421) +++ trunk/jython/bugtests/test107.py 2008-10-16 12:15:26 UTC (rev 5422) @@ -1,59 +1,55 @@ """ Check some internal frame info """ - -import support - - import sys from types import ClassType def getinfo(): - """ Returns a tuple consisting of: - the name of the current module - the name of the current class or None - the name of the current function - the current line number - """ - try: - 1/0 - except: - tb = sys.exc_info()[-1] - frame = tb.tb_frame.f_back - modulename = frame.f_globals['__name__'] - funcname = frame.f_code.co_name - lineno = frame.f_lineno + """ Returns a tuple consisting of: + the name of the current module + the name of the current class or None + the name of the current function + the current line number + """ + try: + 1/0 + except: + tb = sys.exc_info()[-1] + frame = tb.tb_frame.f_back + modulename = frame.f_globals['__name__'] + funcname = frame.f_code.co_name + lineno = frame.f_lineno - if len(frame.f_code.co_varnames) == 0: - classname = None - else: - self = frame.f_locals[frame.f_code.co_varnames[0]] - myclass = self.__class__ - if type(myclass) == ClassType: - classname = myclass.__name__ - else: - classname = None + if len(frame.f_code.co_varnames) == 0: + classname = None + else: + self = frame.f_locals[frame.f_code.co_varnames[0]] + myclass = self.__class__ + if type(myclass) == ClassType: + classname = myclass.__name__ + else: + classname = None - return modulename, classname, funcname, lineno + return modulename, classname, funcname, lineno def foo(): - x = 99 - g = getinfo() - support.compare(g[0], "(__main__|test107)") - support.compare(g[1], "None") - support.compare(g[2], "foo") + x = 99 + g = getinfo() + assert (g[0] == "__main__" or g[0] == "test107") + assert (g[1] == None) + assert (g[2] == "foo") class Bar: - def baz(self): - g = getinfo() - support.compare(g[0], "(__main__|test107)") - support.compare(g[1], "Bar") - support.compare(g[2], "baz") + def baz(self): + g = getinfo() + assert (g[0] == "__main__" or g[0] == "test107") + assert (g[1] == "Bar") + assert (g[2] == "baz") g = getinfo() -support.compare(g[0], "(__main__|test107)") -support.compare(g[1], "None") -support.compare(g[2], "<module>") +assert (g[0] == "__main__" or g[0] == "test107") +assert (g[1] == None) +assert (g[2] == "<module>") foo() Bar().baz() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 12:07:29
|
Revision: 5421 http://jython.svn.sourceforge.net/jython/?rev=5421&view=rev Author: fwierzbicki Date: 2008-10-16 12:07:24 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Move essential part of test106 to test_jy_compile.py (bare return not permitted in exec). Modified Paths: -------------- trunk/jython/Lib/test/test_jy_compile.py Removed Paths: ------------- trunk/jython/bugtests/test106.py Modified: trunk/jython/Lib/test/test_jy_compile.py =================================================================== --- trunk/jython/Lib/test/test_jy_compile.py 2008-10-16 06:38:43 UTC (rev 5420) +++ trunk/jython/Lib/test/test_jy_compile.py 2008-10-16 12:07:24 UTC (rev 5421) @@ -159,6 +159,7 @@ ai("9+","eval") ai("lambda z:","eval") ai("a b","eval") + ai("return 2.3") def test_filename(self): self.assertEquals(compile_("a = 1\n", "abc").co_filename, Deleted: trunk/jython/bugtests/test106.py =================================================================== --- trunk/jython/bugtests/test106.py 2008-10-16 06:38:43 UTC (rev 5420) +++ trunk/jython/bugtests/test106.py 2008-10-16 12:07:24 UTC (rev 5421) @@ -1,18 +0,0 @@ -""" -Check the return in exec is illegal. -""" - -import support - -cmd = """print 'hi' -return 2.3 -print 'fred'""" - -try: - co = compile(cmd, "<string>", "exec") -except SyntaxError, e: - pass -else: - raise support.TestError("Should cause SyntaxError") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-10-16 06:38:54
|
Revision: 5420 http://jython.svn.sourceforge.net/jython/?rev=5420&view=rev Author: pjenvey Date: 2008-10-16 06:38:43 +0000 (Thu, 16 Oct 2008) Log Message: ----------- fix os.access not handling multiple modes, and make its X_OK work via jna-posix's stat Modified Paths: -------------- trunk/jython/Lib/os.py Modified: trunk/jython/Lib/os.py =================================================================== --- trunk/jython/Lib/os.py 2008-10-16 03:28:52 UTC (rev 5419) +++ trunk/jython/Lib/os.py 2008-10-16 06:38:43 UTC (rev 5420) @@ -421,15 +421,17 @@ raise TypeError('an integer is required') f = File(sys.getPath(path)) + result = True if not f.exists(): - return False + result = False if mode & R_OK and not f.canRead(): - return False + result = False if mode & W_OK and not f.canWrite(): - return False - if mode & X_OK: - return False - return True + result = False + if mode & X_OK and not (stat(path).st_mode & _stat.S_IEXEC): + # NOTE: always False without jna-posix stat + result = False + return result def stat(path): """stat(path) -> stat result This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pj...@us...> - 2008-10-16 03:29:00
|
Revision: 5419 http://jython.svn.sourceforge.net/jython/?rev=5419&view=rev Author: pjenvey Date: 2008-10-16 03:28:52 +0000 (Thu, 16 Oct 2008) Log Message: ----------- another unicode/str regression: co_name and co_filename should be a str Modified Paths: -------------- trunk/jython/src/org/python/core/PyTableCode.java Modified: trunk/jython/src/org/python/core/PyTableCode.java =================================================================== --- trunk/jython/src/org/python/core/PyTableCode.java 2008-10-16 03:15:27 UTC (rev 5418) +++ trunk/jython/src/org/python/core/PyTableCode.java 2008-10-16 03:28:52 UTC (rev 5419) @@ -137,9 +137,21 @@ public PyObject __findattr_ex__(String name) { // have to craft co_varnames specially - if (name == "co_varnames") return toPyStringTuple(co_varnames); - if (name == "co_cellvars") return toPyStringTuple(co_cellvars); - if (name == "co_freevars") return toPyStringTuple(co_freevars); + if (name == "co_varnames") { + return toPyStringTuple(co_varnames); + } + if (name == "co_cellvars") { + return toPyStringTuple(co_cellvars); + } + if (name == "co_freevars") { + return toPyStringTuple(co_freevars); + } + if (name == "co_filename") { + return new PyString(co_filename); + } + if (name == "co_name") { + return new PyString(co_name); + } return super.__findattr_ex__(name); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 03:15:30
|
Revision: 5418 http://jython.svn.sourceforge.net/jython/?rev=5418&view=rev Author: fwierzbicki Date: 2008-10-16 03:15:27 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Another "does not work" Removed Paths: ------------- trunk/jython/bugtests/test105.py Deleted: trunk/jython/bugtests/test105.py =================================================================== --- trunk/jython/bugtests/test105.py 2008-10-16 03:14:39 UTC (rev 5417) +++ trunk/jython/bugtests/test105.py 2008-10-16 03:15:27 UTC (rev 5418) @@ -1,30 +0,0 @@ -""" -Check subclassing into python and back into java. (does not work) -""" - -import support -""" -#support.compileJava("classes\\test105j1.java"): -#support.compileJava("classes\\test105j2.java"): -#support.compileJPythonc("-deep", "-workdir classes", "test105p3.py") -#support.compileJava("classes\\test105j4.java"): - -import test105j1 -import test105j2 -import test105p3 -import test105j4 - -j1 = test105j1() -support.compare(j1.fooify('hi'), "hifoo") - -p3 = test105p3.test105p3() -print dir(p3) -print p3.__class__ -print dir(p3.__class__) -print p3.__class__.__dict__['barify'] - -support.compare(p3.barify('hi'), "hifoobar") - -j4 = test105j4() -support.compare(j4.bazify("aaa"), "hifoobarbaz") -""" \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 03:14:47
|
Revision: 5417 http://jython.svn.sourceforge.net/jython/?rev=5417&view=rev Author: fwierzbicki Date: 2008-10-16 03:14:39 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Another empty test. Removed Paths: ------------- trunk/jython/bugtests/test103.py Deleted: trunk/jython/bugtests/test103.py =================================================================== --- trunk/jython/bugtests/test103.py 2008-10-16 03:11:28 UTC (rev 5416) +++ trunk/jython/bugtests/test103.py 2008-10-16 03:14:39 UTC (rev 5417) @@ -1,7 +0,0 @@ -""" - -""" - -import support - -"empty" \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 03:11:32
|
Revision: 5416 http://jython.svn.sourceforge.net/jython/?rev=5416&view=rev Author: fwierzbicki Date: 2008-10-16 03:11:28 +0000 (Thu, 16 Oct 2008) Log Message: ----------- test102 moved to test_jy_internals.py Modified Paths: -------------- trunk/jython/Lib/test/test_jy_internals.py Removed Paths: ------------- trunk/jython/bugtests/test102.py Modified: trunk/jython/Lib/test/test_jy_internals.py =================================================================== --- trunk/jython/Lib/test/test_jy_internals.py 2008-10-16 02:56:10 UTC (rev 5415) +++ trunk/jython/Lib/test/test_jy_internals.py 2008-10-16 03:11:28 UTC (rev 5416) @@ -155,6 +155,23 @@ self.assertEquals(cnt, 0) +class FrameTest(unittest.TestCase): + def test_stack_frame_locals(self): + def h(): + a = 1 + b = 2 + raise AttributeError("spam") + + try: + h() + except: + import sys + tb = sys.exc_info()[2] + while tb.tb_next is not None: + tb = tb.tb_next + vars = tb.tb_frame.f_locals + self.assertEquals(sorted(vars.items()), [('a',1), ('b',2)]) + def test_main(): test_suite = unittest.TestSuite() test_loader = unittest.TestLoader() @@ -165,6 +182,7 @@ suite_add(ExtraMathTests) suite_add(DatetimeTypeMappingTest) suite_add(IdTest) + suite_add(FrameTest) run_suite(test_suite) if __name__ == "__main__": Deleted: trunk/jython/bugtests/test102.py =================================================================== --- trunk/jython/bugtests/test102.py 2008-10-16 02:56:10 UTC (rev 5415) +++ trunk/jython/bugtests/test102.py 2008-10-16 03:11:28 UTC (rev 5416) @@ -1,23 +0,0 @@ -""" -Check stack frame locals. -""" - -import sys - - -def vars(): - tb = sys.exc_info()[2] - while tb.tb_next is not None: - tb = tb.tb_next - return tb.tb_frame.f_locals - -def h(): - a = 1 - b = 2 - raise AttributeError("spam") - -try: - h() -except: - assert(vars() == {'a':1, 'b':2 }) - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 02:56:19
|
Revision: 5415 http://jython.svn.sourceforge.net/jython/?rev=5415&view=rev Author: fwierzbicki Date: 2008-10-16 02:56:10 +0000 (Thu, 16 Oct 2008) Log Message: ----------- First get test102.py working again... Modified Paths: -------------- trunk/jython/bugtests/test102.py Modified: trunk/jython/bugtests/test102.py =================================================================== --- trunk/jython/bugtests/test102.py 2008-10-16 02:21:51 UTC (rev 5414) +++ trunk/jython/bugtests/test102.py 2008-10-16 02:56:10 UTC (rev 5415) @@ -2,17 +2,15 @@ Check stack frame locals. """ -import support +import sys def vars(): - import sys tb = sys.exc_info()[2] while tb.tb_next is not None: tb = tb.tb_next - return tb.tb_frame.getf_locals() + return tb.tb_frame.f_locals - def h(): a = 1 b = 2 @@ -21,8 +19,5 @@ try: h() except: - if vars() != {'a':1, 'b':2 }: - raise support.TestError("Unexpected contents of stackframe locals %s" % vars()) + assert(vars() == {'a':1, 'b':2 }) - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 02:21:57
|
Revision: 5414 http://jython.svn.sourceforge.net/jython/?rev=5414&view=rev Author: fwierzbicki Date: 2008-10-16 02:21:51 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Moved unique id test to test_jy_internals Modified Paths: -------------- trunk/jython/Lib/test/test_jy_internals.py Removed Paths: ------------- trunk/jython/bugtests/test099.py Modified: trunk/jython/Lib/test/test_jy_internals.py =================================================================== --- trunk/jython/Lib/test/test_jy_internals.py 2008-10-16 01:53:49 UTC (rev 5413) +++ trunk/jython/Lib/test/test_jy_internals.py 2008-10-16 02:21:51 UTC (rev 5414) @@ -141,7 +141,20 @@ self.assertEquals(datetime.datetime(2008, 5, 29, 16, 50, 1, 1), Py.newDatetime(Timestamp(108, 4, 29, 16, 50, 1, 1000))) +class IdTest(unittest.TestCase): + def test_unique_ids(self): + d = {} + cnt = 0 + for i in xrange(100000): + s = "test" + repr(i) + j = id(s) + if d.has_key(j): + cnt = cnt + 1 + d[j] = s + + self.assertEquals(cnt, 0) + def test_main(): test_suite = unittest.TestSuite() test_loader = unittest.TestLoader() @@ -151,6 +164,7 @@ suite_add(LongAsScaledDoubleValueTests) suite_add(ExtraMathTests) suite_add(DatetimeTypeMappingTest) + suite_add(IdTest) run_suite(test_suite) if __name__ == "__main__": Deleted: trunk/jython/bugtests/test099.py =================================================================== --- trunk/jython/bugtests/test099.py 2008-10-16 01:53:49 UTC (rev 5413) +++ trunk/jython/bugtests/test099.py 2008-10-16 02:21:51 UTC (rev 5414) @@ -1,18 +0,0 @@ -""" -Check if id() returns unique values for different objects. -""" - -import support - -d = {} -cnt = 0 - -for i in xrange(100000): - s = "test" + `i` - j = id(s) - if d.has_key(j): - cnt = cnt + 1 - d[j] = s - -if cnt != 0: - raise support.TestError("%d id() value conflicts" % cnt) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 01:53:58
|
Revision: 5413 http://jython.svn.sourceforge.net/jython/?rev=5413&view=rev Author: fwierzbicki Date: 2008-10-16 01:53:49 +0000 (Thu, 16 Oct 2008) Log Message: ----------- deleting completely empty test. Removed Paths: ------------- trunk/jython/bugtests/test098.py Deleted: trunk/jython/bugtests/test098.py =================================================================== --- trunk/jython/bugtests/test098.py 2008-10-16 01:53:07 UTC (rev 5412) +++ trunk/jython/bugtests/test098.py 2008-10-16 01:53:49 UTC (rev 5413) @@ -1,4 +0,0 @@ -""" -Empty -""" - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 01:53:17
|
Revision: 5412 http://jython.svn.sourceforge.net/jython/?rev=5412&view=rev Author: fwierzbicki Date: 2008-10-16 01:53:07 +0000 (Thu, 16 Oct 2008) Log Message: ----------- Just tests the existance of a __name__ and __doc__ for the exceptions module. Not enough of a test to preserve. Removed Paths: ------------- trunk/jython/bugtests/test097.py Deleted: trunk/jython/bugtests/test097.py =================================================================== --- trunk/jython/bugtests/test097.py 2008-10-16 01:48:49 UTC (rev 5411) +++ trunk/jython/bugtests/test097.py 2008-10-16 01:53:07 UTC (rev 5412) @@ -1,14 +0,0 @@ -""" -Check properites of the exceptions module. -""" - - -import support - -import exceptions - -support.compare(exceptions.__doc__, "standard exception class hierarchy") -support.compare(exceptions.__name__, "exceptions") -#support.compare(exceptions.__file__, r"Lib\\exceptions.py") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-16 01:49:03
|
Revision: 5411 http://jython.svn.sourceforge.net/jython/?rev=5411&view=rev Author: fwierzbicki Date: 2008-10-16 01:48:49 +0000 (Thu, 16 Oct 2008) Log Message: ----------- another "will never work" test. Deleted. Removed Paths: ------------- trunk/jython/bugtests/test096.py Deleted: trunk/jython/bugtests/test096.py =================================================================== --- trunk/jython/bugtests/test096.py 2008-10-15 20:55:46 UTC (rev 5410) +++ trunk/jython/bugtests/test096.py 2008-10-16 01:48:49 UTC (rev 5411) @@ -1,29 +0,0 @@ -""" -Test the imp module (unfinished) -""" - -import support -import sys - -""" Does not work, will never work. - -import imp - -i = imp.find_module("test096j") - - -r = imp.load_module("test096j", i[0], i[1], i[2]) - -print r -print dir(r) -print sys.modules['test096j'] - - -i = imp.find_module("test096j") -r = imp.load_module("test096j", i[0], i[1], i[2]) - -print r -print dir(r) -print sys.modules['test096j'] - -""" \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:55:57
|
Revision: 5410 http://jython.svn.sourceforge.net/jython/?rev=5410&view=rev Author: fwierzbicki Date: 2008-10-15 20:55:46 +0000 (Wed, 15 Oct 2008) Log Message: ----------- Comment at the top Does not work, will never work. Wow. Deleted. Removed Paths: ------------- trunk/jython/bugtests/test095.py Deleted: trunk/jython/bugtests/test095.py =================================================================== --- trunk/jython/bugtests/test095.py 2008-10-15 20:52:30 UTC (rev 5409) +++ trunk/jython/bugtests/test095.py 2008-10-15 20:55:46 UTC (rev 5410) @@ -1,21 +0,0 @@ -""" -check some imp module functions (unfinished) -""" - -""" Does not work, will never work. - -import sys -import imp - -fm = imp.find_module("test095m") -print fm - -r = imp.load_module("test095m", fm[0], fm[1], fm[2]) -print r -print "her1" -print r.__dict__.keys() -print r.__dict__['__path__'] - -print sys.modules['test095m'] - -""" \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:52:47
|
Revision: 5409 http://jython.svn.sourceforge.net/jython/?rev=5409&view=rev Author: fwierzbicki Date: 2008-10-15 20:52:30 +0000 (Wed, 15 Oct 2008) Log Message: ----------- test089.py looks like it is very confused :) Maybe string.replace changed oh so long ago? /me shrugs and deletes. Removed Paths: ------------- trunk/jython/bugtests/test089.py Deleted: trunk/jython/bugtests/test089.py =================================================================== --- trunk/jython/bugtests/test089.py 2008-10-15 20:44:08 UTC (rev 5408) +++ trunk/jython/bugtests/test089.py 2008-10-15 20:52:30 UTC (rev 5409) @@ -1,13 +0,0 @@ -""" - -""" - -import support - -import string - -try: - print string.replace(',', '', '123,456') -except ValueError: - pass - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:44:24
|
Revision: 5408 http://jython.svn.sourceforge.net/jython/?rev=5408&view=rev Author: fwierzbicki Date: 2008-10-15 20:44:08 +0000 (Wed, 15 Oct 2008) Log Message: ----------- This basic re functionality is well tested in our existing unit tests. Removed Paths: ------------- trunk/jython/bugtests/test085.py Deleted: trunk/jython/bugtests/test085.py =================================================================== --- trunk/jython/bugtests/test085.py 2008-10-15 20:42:47 UTC (rev 5407) +++ trunk/jython/bugtests/test085.py 2008-10-15 20:44:08 UTC (rev 5408) @@ -1,17 +0,0 @@ -""" - -""" - -import support - -import re - -x = re.compile(r"(?P<first>.*),(?P<second>.*)") -y = x.search("hello,there") - -support.compare(y.group("first"), "hello") -support.compare(y.group("second"), "there") -support.compare(y.group(1), "hello") -support.compare(y.group(2), "there") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:42:54
|
Revision: 5407 http://jython.svn.sourceforge.net/jython/?rev=5407&view=rev Author: fwierzbicki Date: 2008-10-15 20:42:47 +0000 (Wed, 15 Oct 2008) Log Message: ----------- cleanup dead code. Modified Paths: -------------- trunk/jython/bugtests/test081.py Modified: trunk/jython/bugtests/test081.py =================================================================== --- trunk/jython/bugtests/test081.py 2008-10-15 20:41:18 UTC (rev 5406) +++ trunk/jython/bugtests/test081.py 2008-10-15 20:42:47 UTC (rev 5407) @@ -23,19 +23,3 @@ import test081j spam1 = test081j.spam() support.compare(spam1, "foo") - -# -# Test removed. Reloading java classes are not supposed to work. -# -#mkspam("bar") -# -#test081j = reload(test081j) -#spam2 = test081j.spam() -#support.compare(spam2, "bar") -# -#mkspam("baz") -# -#test081j = reload(test081j) -#spam2 = test081j.spam() -#support.compare(spam2, "baz") - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:41:28
|
Revision: 5406 http://jython.svn.sourceforge.net/jython/?rev=5406&view=rev Author: fwierzbicki Date: 2008-10-15 20:41:18 +0000 (Wed, 15 Oct 2008) Log Message: ----------- test_pkgimport.py already does a reasonable job of checking multiple imports of the same .py file. Removed Paths: ------------- trunk/jython/bugtests/test080.py Deleted: trunk/jython/bugtests/test080.py =================================================================== --- trunk/jython/bugtests/test080.py 2008-10-15 20:37:54 UTC (rev 5405) +++ trunk/jython/bugtests/test080.py 2008-10-15 20:41:18 UTC (rev 5406) @@ -1,27 +0,0 @@ -""" - -""" - -import support - -def mkspam(a): - f = open("test080m.py", "w") - f.write("def Spam(): return '%s'" % a) - f.close() - -mkspam("foo") - -import test080m -spam1 = test080m.Spam() -support.compare(spam1, "foo") - -import time -time.sleep(2) - -mkspam("bar") -reload(test080m) - -spam2 = test080m.Spam() -support.compare(spam2, "bar") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:38:01
|
Revision: 5405 http://jython.svn.sourceforge.net/jython/?rev=5405&view=rev Author: fwierzbicki Date: 2008-10-15 20:37:54 +0000 (Wed, 15 Oct 2008) Log Message: ----------- "find" is well tested and doesn't need this extra test. Removed Paths: ------------- trunk/jython/bugtests/test079.py Deleted: trunk/jython/bugtests/test079.py =================================================================== --- trunk/jython/bugtests/test079.py 2008-10-15 20:35:18 UTC (rev 5404) +++ trunk/jython/bugtests/test079.py 2008-10-15 20:37:54 UTC (rev 5405) @@ -1,12 +0,0 @@ -""" - -""" - -import support - -import string -a = "From: user@host" -b = string.find(a, ":") - -if b != 4: - raise support.TestError("string.find error" + `b`) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:35:30
|
Revision: 5404 http://jython.svn.sourceforge.net/jython/?rev=5404&view=rev Author: fwierzbicki Date: 2008-10-15 20:35:18 +0000 (Wed, 15 Oct 2008) Log Message: ----------- test078.py is outdated. Removed Paths: ------------- trunk/jython/bugtests/test078.py Deleted: trunk/jython/bugtests/test078.py =================================================================== --- trunk/jython/bugtests/test078.py 2008-10-15 20:23:35 UTC (rev 5403) +++ trunk/jython/bugtests/test078.py 2008-10-15 20:35:18 UTC (rev 5404) @@ -1,11 +0,0 @@ -""" -__file__ should not be defined when eval. -""" - -import support - -try: - eval('__file__') -except NameError, e: - support.compare(e, "__file__") - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:23:43
|
Revision: 5403 http://jython.svn.sourceforge.net/jython/?rev=5403&view=rev Author: fwierzbicki Date: 2008-10-15 20:23:35 +0000 (Wed, 15 Oct 2008) Log Message: ----------- test077.py is well tested in our current unit tests. Removed Paths: ------------- trunk/jython/bugtests/test077.py Deleted: trunk/jython/bugtests/test077.py =================================================================== --- trunk/jython/bugtests/test077.py 2008-10-15 20:22:02 UTC (rev 5402) +++ trunk/jython/bugtests/test077.py 2008-10-15 20:23:35 UTC (rev 5403) @@ -1,11 +0,0 @@ -""" -Basic test of exec -""" - -import support - -exec "a = 'spam'" in globals() - -support.compare(a, "spam") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:22:08
|
Revision: 5402 http://jython.svn.sourceforge.net/jython/?rev=5402&view=rev Author: fwierzbicki Date: 2008-10-15 20:22:02 +0000 (Wed, 15 Oct 2008) Log Message: ----------- Move bugtests/test076.py into regrtest. Modified Paths: -------------- trunk/jython/Lib/test/test_exceptions_jy.py Removed Paths: ------------- trunk/jython/bugtests/test076.py Modified: trunk/jython/Lib/test/test_exceptions_jy.py =================================================================== --- trunk/jython/Lib/test/test_exceptions_jy.py 2008-10-15 20:16:53 UTC (rev 5401) +++ trunk/jython/Lib/test/test_exceptions_jy.py 2008-10-15 20:22:02 UTC (rev 5402) @@ -13,7 +13,19 @@ self.assertEquals(str(KeyError('')), "''") self.assertEquals(str(KeyError('', '')), "('', '')") + #From bugtests/test076.py + def test_raise_no_arg(self): + r = None + try: + try: + raise RuntimeError("dummy") + except RuntimeError: + raise + except RuntimeError, e: + r = str(e) + self.assertEquals(r, "dummy") + def test_main(): test_support.run_unittest(ExceptionsTestCase) Deleted: trunk/jython/bugtests/test076.py =================================================================== --- trunk/jython/bugtests/test076.py 2008-10-15 20:16:53 UTC (rev 5401) +++ trunk/jython/bugtests/test076.py 2008-10-15 20:22:02 UTC (rev 5402) @@ -1,20 +0,0 @@ -""" -raise with no arguments throws SyntaxError -""" - -import support - -r = None -try: - try: - raise support.TestError("dummy") - except support.TestError: - raise -except support.TestError, e: - r = str(e) - - -if r != "dummy": - raise support.TestError("Error not reraised") - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fwi...@us...> - 2008-10-15 20:17:01
|
Revision: 5401 http://jython.svn.sourceforge.net/jython/?rev=5401&view=rev Author: fwierzbicki Date: 2008-10-15 20:16:53 +0000 (Wed, 15 Oct 2008) Log Message: ----------- Guard the Java-specific top imports with an is_jython. This way some of the bugtests can run in pure python to make it easier to tilt at this windmill: http://code.google.com/p/google-highly-open-participation-psf/source/browse/trunk/submissions/jython-tests-26-50.txt?r=424 Windmill summary: Turn all bugtests into real unit tests or kill. Modified Paths: -------------- trunk/jython/bugtests/support.py Modified: trunk/jython/bugtests/support.py =================================================================== --- trunk/jython/bugtests/support.py 2008-10-15 20:10:46 UTC (rev 5400) +++ trunk/jython/bugtests/support.py 2008-10-15 20:16:53 UTC (rev 5401) @@ -1,16 +1,18 @@ +import sys +is_jython = sys.platform[:4] == "java" import re, exceptions, thread, os, shutil -import jarray - import support_config as cfg -from java.io import FileInputStream -from java.io import FileOutputStream -from java.util.jar import JarEntry -from java.util.jar import JarFile -from java.util.jar import JarInputStream -from java.util.jar import JarOutputStream -from java.util.jar import Manifest +if is_jython: + import jarray + from java.io import FileInputStream + from java.io import FileOutputStream + from java.util.jar import JarEntry + from java.util.jar import JarFile + from java.util.jar import JarInputStream + from java.util.jar import JarOutputStream + from java.util.jar import Manifest UNIX = os.pathsep == ":" WIN = os.pathsep == ";" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |