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

PyCQA / pylint / 1010
92%
main: 95%

Build:
Build:
LAST BUILD BRANCH: maintenance/2.15.x
DEFAULT BRANCH: main
Ran 03 Jan 2017 07:52AM UTC
Jobs 5
Files 33
Run time 23s
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
1010

push

travis-ci

PCManticore
Check if a name is locally assigned when looking for used-before-assignment

If a name is locally assigned and there is another global name with the same variable, this can result in an UnboundLocalError, as seen in the following example:

  x = 24
  def test(a):
     if x == a:
           for x in [1, 2, 3]:
               print(x)
  test(24)

In this case, we should emit an ``used-before-assignment`` message. Closes #1081

4 of 4 new or added lines in 1 file covered. (100.0%)

2129 of 8521 relevant lines covered (24.99%)

1.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
100.0
pylint/checkers/variables.py

Coverage Regressions

Lines Coverage ∆ File
1
100.0
pylint/checkers/variables.py
Jobs
ID Job ID Ran Files Coverage
1 1010.1 (TOXENV=py27) 03 Jan 2017 07:52AM UTC 0
24.79
Travis Job 1010.1
2 1010.2 (TOXENV=py33) 03 Jan 2017 07:52AM UTC 0
24.8
Travis Job 1010.2
3 1010.3 (TOXENV=py34) 03 Jan 2017 07:52AM UTC 0
24.77
Travis Job 1010.3
4 1010.4 (TOXENV=py35) 03 Jan 2017 07:53AM UTC 0
24.77
Travis Job 1010.4
5 1010.5 (TOXENV=py36) 03 Jan 2017 07:52AM UTC 0
24.77
Travis Job 1010.5
Source Files on build 1010
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1010
  • 4bb474df on github
  • Prev Build on master (#1009)
  • Next Build on master (#1014)
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