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

ICRAR / ngas / 152 / 1
69%
master: 69%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2018 10:09AM UTC
Files 159
Run time 6s
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

09 Jan 2018 09:50AM UTC coverage: 63.116% (+0.02%) from 63.099%
DB=sqlite3

push

travis-ci

rtobar
Safer imports, take 2

The import machinery in python 2.7 puts the modules into the sys.modules
dictionary *before* the modules themselves are fully loaded (which seems
to be to be like this to be able to detect circular dependencies). Thus,
inspecting the sys.modules for the presence of a module must be done
while holding the importing lock, which we are doing now. An alternative
solution would be to not inspect sys.modules and always use importlib's
import_module (or the old __import__ builtin function), but we probably
want to maintain this little optimization, which also enable us to
cleanly offer reloading support.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>

12504 of 19811 relevant lines covered (63.12%)

0.63 hits per line

Source Files on job 152.1 (DB=sqlite3)
  • Tree
  • List 0
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 152
  • Travis Job 152.1
  • b95bdb96 on github
  • Prev Job for DB=sqlite3 on master (#151.1)
  • Next Job for DB=sqlite3 on master (#162.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