Message9988

Author jeff.allen
Recipients jeff.allen
Date 2015-04-29.19:47:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430336824.38.0.712457016107.issue2347@psf.upfronthosting.co.za>
In-reply-to
Content
When run as a module (jython -m test.test_import_pep328) the test fails here:
testRelativeOrAbsolute_top_X2_1 (__main__.TestImportFunction) ... FAIL
testRelativeOrAbsolute_top_X2_2 (__main__.TestImportFunction) ... FAIL
testRelativeOrAbsolute_top_Y_1 (__main__.TestImportFunction) ... FAIL
testRelativeOrAbsolute_top_Y_2 (__main__.TestImportFunction) ... FAIL

all with generally the same error:

======================================================================
FAIL: testRelativeOrAbsolute_top_X2_1 (__main__.TestImportFunction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\jython\2.7rc3\Lib\test\test_import_pep328.py", line 279, in testRelativeOrAbsolute_top_X2_1
    self.assertEqual(self.fullname, self.modX2.__name__)
AssertionError: 'test.TestImportFunctionX2' != 'TestImportFunctionX2'

Run as a file (jython ...\lib\test\test_import_pep328.py) it passes. This seems to be a problem with the (Jython-specific) test, as CPython also fails it. Clearly it's to do with ignoring the package name of the suite.

I'll take this with the other import bugs: it's been an education.
History
Date User Action Args
2015-04-29 19:47:04jeff.allensetrecipients: + jeff.allen
2015-04-29 19:47:04jeff.allensetmessageid: <1430336824.38.0.712457016107.issue2347@psf.upfronthosting.co.za>
2015-04-29 19:47:04jeff.allenlinkissue2347 messages
2015-04-29 19:47:03jeff.allencreate