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

ChrisCummins / srtime / 28 / 1
61%
master: 61%

Build:
DEFAULT BRANCH: master
Ran 18 Nov 2014 11:50PM UTC
Files 6
Run time 3s
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

18 Nov 2014 11:42PM UTC coverage: 53.394%. Remained the same
28.1

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%)

0.53 hits per line

Source Files on job 28.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28
  • Travis Job 28.1
  • 1ef3a168 on github
  • Prev Job for on master (#27.2)
  • Next Job for on master (#29.1)
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

© 2026 Coveralls, Inc