[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-01-03 Thread Salman Haq
Salman Haq added the comment: Hope everyone had a good new year's. I've attached an updated patch which adds a new unittest, test_loadTestsFromNames__badimport. Both the new unittests can use better documentation, hopefully one of you can help me with that. -- Added

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-28 Thread Salman Haq
Salman Haq added the comment: I'm attaching a patch (against trunk) which I think is a step in the right direction but I could use some feedback. This patch modifies 'loadTestsFromName()' so that it saves and re-raises an ImportError. Further this patch introduces

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-26 Thread Salman Haq
Salman Haq added the comment: Line 348 in trunk/Lib/test/test_unittest.py has a test case to specifically test that in the described situation, the test returns an AttributeError. Should this test be changed so that it passes if the exception is in fact an ImportError? def

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Salman Haq
Salman Haq added the comment: Only the argument with one decimal place precision does NOT overflow. Python 2.7a1+ (trunk:76872, Dec 21 2009, 09:54:29) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license&q

[issue4388] test_cmd_line fails on MacOS X

2009-12-24 Thread Salman Haq
Salman Haq added the comment: Confirming that the test fails on r77044. Tested on Mac OS X 10.4.11 (Intel). running build_scripts test_cmd_line test_directories (test.test_cmd_line.CmdLineTest) ... ok test_large_PYTHONPATH (test.test_cmd_line.CmdLineTest) ... ok test_optimize

[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Salman Haq
New submission from Salman Haq : See output of regrtest below. It was run on an Intel Mac OS X 10.4 A similar failure is observed on the py3k branch. ./python.exe Lib/test/regrtest.py -v test_math test_math testAcos (test.test_math.MathTests) ... ok testAcosh (test.test_math.MathTests) ... ok