• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ChrisCummins / srtime / 28
61%

Build:
DEFAULT BRANCH: master
Ran 18 Nov 2014 11:50PM UTC
Jobs 2
Files 6
Run time 26s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
28

push

travis-ci

ChrisCummins
Use int() instead of round() to cast float to int

Printing a float that has been rounded in python 2.* causes a ".0" to be
appended to the variable, whereas in python 3.*, the decimal place is
removed. This was causing the assertion in test_stats_format() of
test_stats.py to fail under python 2.7, as the expected string is:

    95% confidence values from 3 iterations:
    -0.48 2.0 4.48

Whereas the round() function in python 2.7 caused the returned string to
be:

    95.0% confidence values from 3 iterations:
    -0.48 2.0 4.48

This patch addresses this issue, so that the output is consistent on
both python 2.* and 3.*.

118 of 221 relevant lines covered (53.39%)

1.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28.1 18 Nov 2014 11:50PM UTC 0
53.39
Travis Job 28.1
2 28.2 18 Nov 2014 11:50PM UTC 0
53.39
Travis Job 28.2
Source Files on build 28
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #28
  • 1ef3a168 on github
  • Prev Build on master (#27)
  • Next Build on master (#29)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc