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

escapewindow / scriptworker / 1033
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fxci
DEFAULT BRANCH: master
Ran 05 Jul 2018 09:52PM UTC
Jobs 1
Files 16
Run time 8min
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
1033

push

travis-ci

escapewindow
explicitly pass in an `event_loop` in testing.

Create a `context.event_loop` property to standardize the loop we use.
In regular usage, we default to `asyncio.get_event_loop()`. In testing,
we're using `pytest-asyncio` which creates new `event_loop` fixtures per
test and closes them at the end; and `pytest-xdist` which runs tests in
parallel. When combined, bare `asyncio.get_event_loop()` calls can
result in intermittent bustage (closed loop errors).

By modifying the `rw_context` fixture to populate its `event_loop` with
the `pytest-asyncio` `event_loop`, we get most of the way to the fix.
`main` and `rebuild_gpg_homedirs` are entry points that create their own
`context` objects, so they now take optional `event_loop` kwargs to
override the loop during testing.

2176 of 2177 relevant lines covered (99.95%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1033.1 (TOXENV=py36 NO_TESTS_OVER_WIRE=1) 05 Jul 2018 10:01PM UTC 0
99.95
Travis Job 1033.1
Source Files on build 1033
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1033
  • ff1d30d0 on github
  • Prev Build on intermittents-pt2 (#1031)
  • Next Build on intermittents-pt2 (#1035)
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