IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

Test issues in test_ipye.py under non-English OSes #458

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

--------------------------------------------------------------------------


IP VERSION AFFECTED: 2.6 Beta 1(ish)
BUILD TYPE: Debug
FLAGS PASSED TO IPY.EXE: None
OPERATING SYSTEM: German 32-bit Vista SP1
CLR VERSION: .NET 2.0 SP1

--------------------------------------------------------------------------


BRIEF DESCRIPTION:
We're specifically looking for stack traces written in English generated by ipy.exe. The
question becomes: should IP generate everything in English like CPython does or should
we localize everything?

--------------------------------------------------------------------------


REPRODUCTION SNIPPET:
Machine Name: VSLGO5-DEUTSCH
x86
Microsoft Windows [Version 6.0.6001]
Skipping disabled test test_deferred_compilation. (Reason: The ProfileDrivenCompilation feature is removed from DLR)

0.00s testing test_Engine_Scenario12
0.09s testing test_Engine_Scenario167
0.13s testing test_Engine_Scenario542
0.19s testing test_Engine_ScenarioAddToPath
0.34s testing test_Engine_ScenarioCP712 4

0.39s testing test_Engine_ScenarioCallClassInstance
0.51s testing test_Engine_ScenarioCallableClassToDelegate
0.54s testing test_Engine_ScenarioCompileAndRun
0.56s testing test_Engine_ScenarioCustomDictionary
0.59s testing test_Engine_ScenarioDlrInterop
2.28s testing test_Engine_ScenarioEvaluate 10

2.34s testing test_Engine_ScenarioEvaluateInAnonymousEngineModule
2.38s testing test_Engine_ScenarioEvaluateInPublishedEngineModule
2.39s testing test_Engine_ScenarioExecute
2.49s testing test_Engine_ScenarioExecuteFile
2.52s testing test_Engine_ScenarioHostingHelpers
4.43s testing test_Engine_ScenarioMemberNames
4.53s testing test_Engine_ScenarioObjectOperations
4.54s testing test_Engine_ScenarioPartialTrust
7.47s testing test_Engine_ScenarioStackFrameLineInfo FAIL (<type 'exceptions.Exception'>)
7.82s testing test_Engine_ScenarioStreamRedirect
7.85s testing test_formatexception
7.99s testing test_formatexception_exceptiondetail FAIL (<type 'exceptions.AssertionError'>)
8.32s testing test_formatexception_showclrexceptions FAIL (<type 'exceptions.AssertionError'>)

Test test_Engine_ScenarioStackFrameLineInfo failed throwing <type 'exceptions.Exception'> (Debugging is enabled even though Options.DebugMode is not specified)
... run_test in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\Lib\iptest\assert_util.py line 505
... test_Engine_ScenarioStackFrameLineInfo in line 1
... C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython\Tests\Inputs\ raise.py in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython\Tests \Inputs\raise.py line 23
... * init * in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython \Tests\Inputs\raise.py line 21
... C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython\Tests\Inputs\ raise.py in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython\Tests \Inputs\raise.py line 23
... * init * in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython \Tests\Inputs\raise.py line 21
... in line 2
... in line 1
... in line 2
... in line 1
... C:\SnapTemp\tmp5906.tmp in C:\SnapTemp\tmp5906.tmp line 1

Test test_formatexception_exceptiondetail failed throwing <type 'exceptions.AssertionError'> (Assertion failed)
... run_test in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\Lib\iptest\assert_util.py line 505
... test_formatexception_exceptiondetail in test_ipye.py line 141
... Assert in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\Lib\iptest\assert_util.py line 195

Test test_formatexception_showclrexceptions failed throwing <type 'exceptions.AssertionError'> (expected "Traceback (most recent call last):\r\nException: first\r\nCLR Exception: \r\n Exception\r\n: \r\nfirst\r\n Exception\r\n: \r\nsecond\r\n Exception\r\n: \r\nException of type 'System.Exception' was thrown.\r\n", but found u'Traceback (most recent call last):\r\nException: first\r\nCLR Exception: \r\n Exception\r\n: \r\nfirst\r\n Exception\r\n: \r\nsecond\r\n Exception\r\n: \r\nEine Ausnahme vom Typ System.Exception wurde ausgel\xf6st.\r\n')
... run_test in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\Lib\iptest\assert_util.py line 505
... test_formatexception_showclrexceptions in test_ipye.py line 118
... AreEqual in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\Lib\iptest\assert_util.py line 205
... Assert in C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\Lib\iptest\assert_util.py line 195

24 total, 21 passed, 3 failed
Please run the following command to repro:

C:\SnapTemp\MerlinSnap\Test\Merlin\Main\Languages\IronPython\Tests> C:\SnapTemp\MerlinSnap\Test\Merlin\Main\bin\Debug\ipy.exe    test_ipye.py

Work Item Details

Original CodePlex Issue: Issue 22273 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: May 5, 2009 at 12:59 AM Reported by: dfugate Updated on: Feb 22, 2013 at 2:13 AM Updated by: jdhardy Test: test_ipye.py

ironpythonbot commented 9 years ago

On 2009-05-12 02:15:32 UTC, unknown user commented:

-X:ExceptionDetail output may be localized. Test should be udpated