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

aiidateam / aiida-core / 7682
70%

Build:
DEFAULT BRANCH: develop
Ran 02 Dec 2019 04:45PM UTC
Jobs 2
Files 418
Run time 18min
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
7682

push

travis-ci

sphuber
Drop Python 2: remove arguments from `super` calls

This is no longer necesary in python 3. To remove all the occurrences
of this usage, the following command was used:

    find . -type f -not -path './.git*' -exec \
    sed -i 's/super([^)]*,[^)]*)/super()/g' {} +

The regex tries to find all instances of `super()` where there is
content between the parentheses. The search for `[^)]*` means to look
for all characters except a closing parens, which essentially makes the
search non-greedy. Having just that would not be enough and we have to
explicitly add another such clause separated by a comma. This is the
exact format required by python 2 where the `super` call expects two
arguments, first being the class itself and the second the reference,
typically `self` or `cls. By making the regex more specific we avoid
matching cases like:

    def test_without_super(self):

which would be replaced to

    def test_without_super():

if we don't include the explicit comma in the regex between the parens.

228 of 228 new or added lines in 112 files covered. (100.0%)

21898 of 31273 relevant lines covered (70.02%)

1.39 hits per line

Jobs
ID Job ID Ran Files Coverage
3 7682.3 (AIIDA_TEST_BACKEND=django TEST_TYPE="tests") 02 Dec 2019 05:04PM UTC 0
69.24
Travis Job 7682.3
4 7682.4 (AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests") 02 Dec 2019 04:45PM UTC 0
70.02
Travis Job 7682.4
Source Files on build 7682
  • Tree
  • List 0
  • Changed 377
  • Source Changed 377
  • Coverage Changed 377
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #7682
  • 0644e7d9 on github
  • Prev Build on develop (#7678)
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