Branch: refs/heads/master Home: https://github.com/uzh/gc3pie Commit: 237ae1922a0b27b09b2eb468dfc93aaa062e5539 https://github.com/uzh/gc3pie/commit/237ae1922a0b27b09b2eb468dfc93aaa062e5539 Author: Riccardo Murri <riccardo.mu...@gmail.com> Date: 2017-03-08 (Wed, 08 Mar 2017)
Changed paths: M gc3libs/backends/shellcmd.py Log Message: ----------- Use only numbers that are exactly representable as single-precision floats in doctest of `gc3libs.shellcmd._parse_percentage()` Apparently, Python 2.6 uses a different precision or truncation algorithm that Python 2.7+ which makes doctests involving `0.1` fail:: =================================== FAILURES =================================== ____________ [doctest] gc3libs.backends.shellcmd._parse_percentage _____________ Expected: 0.1 Got: 0.10000000000000001 -- You received this message because you are subscribed to the Google Groups "gc3pie-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to gc3pie-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gc3pie-dev/58c02afc24414_76ca3fa38792dc44961ea%40hookshot-fe1-cp1-prd.iad.github.net.mail. For more options, visit https://groups.google.com/d/optout.