-
Notifications
You must be signed in to change notification settings - Fork 45
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
33 changed files
with
1,303 additions
and
16,544 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
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
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
Submodule xpa
updated
19 files
+14 −49 | Makefile.in | |
+19 −9 | client.c | |
+6 −0 | conf.h.in | |
+430 −463 | config.guess | |
+329 −115 | config.sub | |
+2 −5 | configure | |
+1 −5 | configure.ac | |
+1 −1 | ctest.c | |
+37 −3 | dns.c | |
+3 −3 | doc/pod/xpamb.pod | |
+3 −3 | doc/xpamb.html | |
+3 −1 | find.c | |
+24 −15 | man/man1/xpamb.1 | |
+43 −2 | tcp.c | |
+3 −0 | word.c | |
+3 −1 | xalloc.c | |
+6 −3 | xlaunch.c | |
+12 −4 | xpa.c | |
+4 −1 | xpap.h |
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,32 @@ | ||
# Uncomment the following lines to display the version number of the | ||
# package rather than the version number of Astropy in the top line when | ||
# running the tests. | ||
|
||
import os | ||
|
||
import pytest | ||
from _pytest.doctest import DoctestItem | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def _docdir(request): | ||
""" | ||
Make sure that doctests run in a temporary directory so that any files that | ||
are created as part of the test get removed automatically. | ||
""" | ||
|
||
# Trigger ONLY for the doctests. | ||
if isinstance(request.node, DoctestItem): | ||
|
||
# Get the fixture dynamically by its name. | ||
tmpdir = request.getfixturevalue('tmpdir') | ||
|
||
# Chdir only for the duration of the test. | ||
olddir = os.getcwd() | ||
tmpdir.chdir() | ||
yield | ||
os.chdir(olddir) | ||
|
||
else: | ||
# For normal tests, we have to yield, since this is a yield-fixture. | ||
yield |
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
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
Oops, something went wrong.