From: <fwi...@us...> - 2009-08-10 19:05:19
|
Revision: 6659 http://jython.svn.sourceforge.net/jython/?rev=6659&view=rev Author: fwierzbicki Date: 2009-08-10 19:05:11 +0000 (Mon, 10 Aug 2009) Log Message: ----------- Trivial reindents. Modified Paths: -------------- trunk/jython/Lib/test/test_builtin.py trunk/jython/Lib/test/test_codeop.py trunk/jython/Lib/test/test_javalist.py trunk/jython/Lib/test/test_re.py trunk/jython/Lib/test/test_sax_jy.py trunk/jython/Lib/test/test_subclasses_jy.py trunk/jython/Lib/test/test_threading.py Modified: trunk/jython/Lib/test/test_builtin.py =================================================================== --- trunk/jython/Lib/test/test_builtin.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_builtin.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -215,7 +215,7 @@ from UserList import UserList c = UserList(); c.append(c) self.assertEqual(cmp(a, b), 0) - self.assertEqual(cmp(b, c), 0) + self.assertEqual(cmp(b, c), 0) self.assertEqual(cmp(c, a), 0) self.assertEqual(cmp(a, c), 0) # okay, now break the cycles Modified: trunk/jython/Lib/test/test_codeop.py =================================================================== --- trunk/jython/Lib/test/test_codeop.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_codeop.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -126,7 +126,7 @@ #XXX: works in CPython if not is_jython: - av("@a.b.c\ndef f():\n pass\n") + av("@a.b.c\ndef f():\n pass\n") def test_incomplete(self): ai = self.assertIncomplete Modified: trunk/jython/Lib/test/test_javalist.py =================================================================== --- trunk/jython/Lib/test/test_javalist.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_javalist.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -1,35 +1,35 @@ from javatests import ListTest class PyListTest(ListTest): - - def __init__(self): - ListTest.__init__(self) - - def newInstance(self, coll): - if coll is None: - return list() - else: - return list(coll) - - def isReadOnly(self): - return False - + def __init__(self): + ListTest.__init__(self) + + def newInstance(self, coll): + if coll is None: + return list() + else: + return list(coll) + + def isReadOnly(self): + return False + + class PyTupleTest(ListTest): - - def __init__(self): - ListTest.__init__(self) - - def newInstance(self, coll): - if coll is None: - return tuple() - else: - return tuple(coll) - - def isReadOnly(self): - return True + def __init__(self): + ListTest.__init__(self) + def newInstance(self, coll): + if coll is None: + return tuple() + else: + return tuple(coll) + + def isReadOnly(self): + return True + + # these first two tests just verify that we have a good unit test print "ListTest.java driver (test_javalist.py)" print "running test on ArrayList" @@ -45,8 +45,8 @@ print "running test on PyListTest" plt = PyListTest() -plt.testAll() +plt.testAll() print "running test on PyTupleTest" ptt = PyTupleTest() -ptt.testAll() +ptt.testAll() Modified: trunk/jython/Lib/test/test_re.py =================================================================== --- trunk/jython/Lib/test/test_re.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_re.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -515,7 +515,7 @@ # non-simple '*?' still used to hit the recursion limit, before the # non-recursive scheme was implemented. - # does not apply for Jython, since we do not implement the + # does not apply for Jython, since we do not implement the # non-recursive scheme # self.assertEqual(re.search('(a|b)*?c', 10000*'ab'+'cd').end(0), 20001) Modified: trunk/jython/Lib/test/test_sax_jy.py =================================================================== --- trunk/jython/Lib/test/test_sax_jy.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_sax_jy.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -47,4 +47,3 @@ if __name__ == "__main__": test_main() - Modified: trunk/jython/Lib/test/test_subclasses_jy.py =================================================================== --- trunk/jython/Lib/test/test_subclasses_jy.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_subclasses_jy.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -2,17 +2,17 @@ import test.test_support class SubclassInstanceTest(unittest.TestCase): - - def test_subclass_int(self): - try: - class foo(12): pass - except TypeError: - pass - else: - self.fail("expected TypeError for subclassing an int instance") + def test_subclass_int(self): + try: + class foo(12): pass + except TypeError: + pass + else: + self.fail("expected TypeError for subclassing an int instance") + def test_main(): - test.test_support.run_unittest(SubclassInstanceTest) + test.test_support.run_unittest(SubclassInstanceTest) if __name__ == "__main__": - test_main() + test_main() Modified: trunk/jython/Lib/test/test_threading.py =================================================================== --- trunk/jython/Lib/test/test_threading.py 2009-08-10 19:04:35 UTC (rev 6658) +++ trunk/jython/Lib/test/test_threading.py 2009-08-10 19:05:11 UTC (rev 6659) @@ -112,7 +112,7 @@ self.test_various_ops() threading.stack_size(0) - # this test is not applicable to jython since + # this test is not applicable to jython since # 1. Lock is equiv to RLock, so this weird sync behavior won't be seen # 2. We use a weak hash map to map these threads # 3. This behavior doesn't make sense for Jython since any foreign This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |