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
b55f944f
Commit
b55f944f
authored
Oct 03, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge: #12780: update inspect test skipIf for PEP 3147.
parents
b86f08f7
32562d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+5
-4
No files found.
Lib/test/test_inspect.py
View file @
b55f944f
...
...
@@ -446,10 +446,11 @@ class TestBuggyCases(GetSourceBase):
def
test_method_in_dynamic_class
(
self
):
self
.
assertSourceEqual
(
mod2
.
method_in_dynamic_class
,
95
,
97
)
@
unittest
.
skipIf
(
not
hasattr
(
unicodedata
,
'__file__'
)
or
unicodedata
.
__file__
[
-
4
:]
in
(
".pyc"
,
".pyo"
),
"unicodedata is not an external binary module"
)
# This should not skip for CPython, but might on a repackaged python where
# unicodedata is not an external module, or on pypy.
@
unittest
.
skipIf
(
not
hasattr
(
unicodedata
,
'__file__'
)
or
unicodedata
.
__file__
.
endswith
(
'.py'
),
"unicodedata is not an external binary module"
)
def
test_findsource_binary
(
self
):
self
.
assertRaises
(
OSError
,
inspect
.
getsource
,
unicodedata
)
self
.
assertRaises
(
OSError
,
inspect
.
findsource
,
unicodedata
)
...
...
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