#3091: With Python 2.5.1c1, validate ends "... runtests.py ... ValueError:
invalid
literal for int() with base 10: '1c1'"
---------------------------------+------------------------------------------
Reporter: thorkilnaur | Owner: igloo
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Test Suite | Version: 6.11
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => fixed
Comment:
Thanks for the report. I couldn't see a nice way to fix this, so I kludged
around it with a regexp:
{{{
maj = int(re.sub('[^0-9].*', '', maj))
min = int(re.sub('[^0-9].*', '', min))
pat = int(re.sub('[^0-9].*', '', pat))
}}}
Fixed by:
{{{
Fri Mar 20 19:16:08 GMT 2009 Ian Lynagh <[email protected]>
* Fix trac #3091: the driver was choking on python versions containing
letters
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3091#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs