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

mgedmin / pyspacewar / 67
100%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2016 06:04AM UTC
Jobs 3
Files 7
Run time 10s
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
67

push

travis-ci

mgedmin
Force SDL_VIDEODRIVER=dummy for tests

Background: my tests rely on pygame.key.name(K_RCTRL) returning
something meaningful (like "right ctrl").  This function is a thin
wrapper around SDL_GetKeyName(), which looks up a key from a lookup
table.  That lookup table is not static for some reason in SDL 1.2,
and gets initialized by this call chain:

  SDL_KeyboardInit() called by
  SDL_StartEventLoop() called by
  SDL_VideoInit() called by
  SDL_InitSubSystem() called by
  PyGame_Video_AutoInit() called by
  pygame.init() called by
  pygame.tests.test_ui.setUp()

Now SDL_VideoInit() also initializes other things, like the SDL video
subsystem, for which it tries various backends (including X11, aalib and
caca).  This explains why the presence/absence/values of various
environment variables (DISPLAY/TERM) could make or break the tests, or
why it would suddenly and unexpectedly flash and clear the screen for
tox -e coverage.

By forcing a specific SDL video driver (dummy) we remove non-determinism
and hopefully the issue can rest.

1008 of 2200 relevant lines covered (45.82%)

1.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 67.1 22 Sep 2016 06:04AM UTC 0
45.77
Travis Job 67.1
2 67.2 22 Sep 2016 06:04AM UTC 0
45.82
Travis Job 67.2
3 67.3 22 Sep 2016 06:05AM UTC 0
45.82
Travis Job 67.3
Source Files on build 67
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #67
  • e8f599d8 on github
  • Prev Build on master (#66)
  • Next Build on master (#68)
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