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

aiidateam / aiida-core / 7682 / 4
70%
develop: 70%

Build:
DEFAULT BRANCH: develop
Ran 02 Dec 2019 04:45PM UTC
Files 418
Run time 35s
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

02 Dec 2019 04:31PM UTC coverage: 70.022% (-0.8%) from 70.864%
AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests"

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.

21898 of 31273 relevant lines covered (70.02%)

0.7 hits per line

Source Files on job 7682.4 (AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 377
  • Source Changed 377
  • Coverage Changed 377
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 816
  • Travis Job 7682.4
  • 0644e7d9 on github
  • Prev Job for AIIDA_TEST_BACKEND=sqlalchemy TEST_TYPE="tests" on develop (#7678.4)
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