Issue2669

classification
Title: testIteration (from test_file.py) failed with AssertionError
Type: Severity: normal
Components: Any Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen, psykiatris
Priority: Keywords:

Created on 2018-04-14.15:16:39 by psykiatris, last changed 2018-05-22.20:37:47 by psykiatris.

Files
File name Uploaded Description Edit Remove
unnamed psykiatris, 2018-05-22.20:37:46
Messages
msg11905 (view) Author: Patrick Palczewski (psykiatris) Date: 2018-04-14.15:16:38
I was running test_file.py manually and I received the following message.

FAIL: testIteration (test.test_file.OtherFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/patrick/jython/dist/Lib/test/test_file.py", line 270, in testIteration
    self.fail("%s%r after next() didn't raise ValueError" %
AssertionError: readline() after next() didn't raise ValueError

Now, if I run the regrtest, this test passes. 
I didn't find any current issures regarding this, and maybe it's not an issue. Just something I noticed.  I've run other single tests successfully.
msg11998 (view) Author: Jeff Allen (jeff.allen) Date: 2018-05-22.19:44:51
We remove that test method, so there is something wrong with your build, or the way you are running the test, that is giving you the CPython version of the test, not the Jython one. See: https://hg.python.org/jython/file/tip/Lib/test/test_file.py#l341

If you want to run that module individually, this should do it:

$ dist/bin/jython -m test.test_file

and if it doesn't, the build is broken. (Try "ant clean developer-build".)
msg11999 (view) Author: Patrick Palczewski (psykiatris) Date: 2018-05-22.20:37:47
I completely forgot about this and was really confused.

It's good to close it. It was pilot error and everything has been fine 
since.

On 05/22/2018 12:44 PM, Jeff Allen wrote:
> Jeff Allen <ja.py@farowl.co.uk> added the comment:
>
> We remove that test method, so there is something wrong with your build, or the way you are running the test, that is giving you the CPython version of the test, not the Jython one. See: https://hg.python.org/jython/file/tip/Lib/test/test_file.py#l341
>
> If you want to run that module individually, this should do it:
>
> $ dist/bin/jython -m test.test_file
>
> and if it doesn't, the build is broken. (Try "ant clean developer-build".)
>
> ----------
> milestone: Jython 2.7.2 ->
> nosy: +jeff.allen
> resolution:  -> invalid
> status: open -> closed
>
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue2669>
> _______________________________________
History
Date User Action Args
2018-05-22 20:37:47psykiatrissetfiles: + unnamed
messages: + msg11999
2018-05-22 19:44:52jeff.allensetstatus: open -> closed
resolution: invalid
messages: + msg11998
nosy: + jeff.allen
milestone: Jython 2.7.2 ->
2018-04-15 13:19:44psykiatrissetversions: + Jython 2.7
milestone: Jython 2.7.2
2018-04-14 15:16:39psykiatriscreate