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

pytransitions / transitions / 586 / 4
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 23 Jul 2017 03:05PM UTC
Files 18
Run time 1s
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

23 Jul 2017 03:03PM UTC coverage: 98.187% (-0.4%) from 98.545%
586.4

Pull #239

travis-ci

web-flow
Fix graph crash with partial conditions

Graph.rep() assumes that every callable has a `__name__` attribute.
However, callables like `functools.partial` and other classes with a
`__call__()` method have no `__name__`.  This patch modifies
`Graph.rep()` to first check whether the condition is a string and
return it, then try to return `f.__name__` (that is the current
behavior) and if that fails, then it calls `str()` on the argument.

`str()` should never fail and it is now the responsibility of the user
to return something meaningful from `__str__()`.
Pull Request #239: Fix graph crash with partial conditions

2653 of 2702 relevant lines covered (98.19%)

0.98 hits per line

Source Files on job 586.4
  • Tree
  • List 0
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 586
  • Travis Job 586.4
  • ea72fe47 on github
  • Prev Job for on master (#585.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