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

ICRAR / ngas / 152
69%

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

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>

12515 of 19811 relevant lines covered (63.17%)

1.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 152.1 (DB=sqlite3) 09 Jan 2018 10:09AM UTC 0
63.12
Travis Job 152.1
2 152.2 (DB=mysql) 09 Jan 2018 10:09AM UTC 0
63.13
Travis Job 152.2
3 152.3 (DB=postgresql) 09 Jan 2018 10:08AM UTC 0
63.13
Travis Job 152.3
Source Files on build 152
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #152
  • b95bdb96 on github
  • Prev Build on master (#151)
  • Next Build on master (#162)
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