Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2133287 commit 7258874Copy full SHA for 7258874
1 file changed
Lib/test/test_nis.py
@@ -3,10 +3,13 @@
3
4
print 'nis.maps()'
5
try:
6
- # the following could fail if NIS isn't active
7
maps = nis.maps()
8
except nis.error, msg:
9
- raise TestFailed, msg
+ # NIS is probably not active, so this test isn't useful
+ if verbose:
10
+ raise TestFailed, msg
11
+ # only do this if running under the regression suite
12
+ raise ImportError, msg
13
14
done = 0
15
for nismap in maps:
0 commit comments