-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# -*- mode: conf -*- | ||
|
||
[run] | ||
# only record trace data for wormhole.* | ||
source = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
# This is a tiny helper module, to let "python -m wormhole.test.run_trial | ||
# ARGS" does the same thing as running "trial ARGS" (unfortunately | ||
# twisted/scripts/trial.py does not have a '__name__=="__main__"' clause). | ||
# | ||
# This makes it easier to run trial under coverage from tox: | ||
# * "coverage run trial ARGS" is how you'd usually do it | ||
# * but "trial" must be the one in tox's virtualenv | ||
# * "coverage run `which trial` ARGS" works from a shell | ||
# * but tox doesn't use a shell | ||
# So use: | ||
# "coverage run -m wormhole.test.run_trial ARGS" | ||
|
||
from twisted.scripts.trial import run | ||
|
||
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters