Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
34294919
Commit
34294919
authored
Feb 03, 2012
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13861: Prevent test_apropos* test case failures in test_pydoc.
parent
cf550dcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_pydoc.py
Lib/test/test_pydoc.py
+2
-2
No files found.
Lib/test/test_pydoc.py
View file @
34294919
...
...
@@ -399,7 +399,7 @@ class PydocImportTest(unittest.TestCase):
badsyntax
=
os
.
path
.
join
(
pkgdir
,
"__init__"
)
+
os
.
extsep
+
"py"
with
open
(
badsyntax
,
'w'
)
as
f
:
f
.
write
(
"invalid python syntax = $1
\
n
"
)
result
=
run_pydoc
(
'
nothing
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
result
=
run_pydoc
(
'
zqwykjv
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
self
.
assertEqual
(
b''
,
result
)
def
test_apropos_with_unreadable_dir
(
self
):
...
...
@@ -409,7 +409,7 @@ class PydocImportTest(unittest.TestCase):
self
.
addCleanup
(
os
.
rmdir
,
self
.
unreadable_dir
)
# Note, on Windows the directory appears to be still
# readable so this is not really testing the issue there
result
=
run_pydoc
(
'
nothing
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
result
=
run_pydoc
(
'
zqwykjv
'
,
'-k'
,
PYTHONPATH
=
TESTFN
)
self
.
assertEqual
(
b''
,
result
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment