From: <pj...@us...> - 2008-12-24 02:22:17
|
Revision: 5796 http://jython.svn.sourceforge.net/jython/?rev=5796&view=rev Author: pjenvey Date: 2008-12-24 01:47:07 +0000 (Wed, 24 Dec 2008) Log Message: ----------- correct issue # reference, small cleanup Modified Paths: -------------- trunk/jython/Lib/os.py trunk/jython/Lib/test/test_builtin_jy.py Modified: trunk/jython/Lib/os.py =================================================================== --- trunk/jython/Lib/os.py 2008-12-23 19:56:53 UTC (rev 5795) +++ trunk/jython/Lib/os.py 2008-12-24 01:47:07 UTC (rev 5796) @@ -564,7 +564,7 @@ floor = long(seconds) except TypeError: raise TypeError('an integer is required') - if floor < _time_t.MIN_VALUE or floor > _time_t.MAX_VALUE: + if not _time_t.MIN_VALUE <= floor <= _time_t.MAX_VALUE: raise OverflowError('long int too large to convert to int') # usec can't exceed 1000000 Modified: trunk/jython/Lib/test/test_builtin_jy.py =================================================================== --- trunk/jython/Lib/test/test_builtin_jy.py 2008-12-23 19:56:53 UTC (rev 5795) +++ trunk/jython/Lib/test/test_builtin_jy.py 2008-12-24 01:47:07 UTC (rev 5796) @@ -17,7 +17,7 @@ self.assert_(not hasattr(Foo(), 'bar')) def test_dir(self): - # for http://bugs.jython.org/issue1063 + # for http://bugs.jython.org/issue1196 class Foo(object): def __getattribute__(self, name): return name This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |