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

mgedmin / pyspacewar / 67 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2016 06:05AM UTC
Files 7
Run time 0s
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

22 Sep 2016 06:03AM UTC coverage: 45.818%. Remained the same
67.3

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%)

0.46 hits per line

Source Files on job 67.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 67
  • Travis Job 67.3
  • e8f599d8 on github
  • Prev Job for on master (#66.3)
  • Next Job for on master (#68.3)
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