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
8e0ae2a4
Commit
8e0ae2a4
authored
Jan 28, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix skip conditions in some docstings tests.
parent
9d0add0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_functools.py
Lib/test/test_functools.py
+1
-1
Lib/test/test_property.py
Lib/test/test_property.py
+2
-2
No files found.
Lib/test/test_functools.py
View file @
8e0ae2a4
...
...
@@ -317,7 +317,7 @@ class TestWraps(TestUpdateWrapper):
self
.
assertEqual
(
wrapper
.
__name__
,
'f'
)
self
.
assertEqual
(
wrapper
.
attr
,
'This is also a test'
)
@
unittest
.
skipIf
(
not
sys
.
flags
.
optimize
<=
1
,
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
>=
2
,
"Docstrings are omitted with -O2 and above"
)
def
test_default_update_doc
(
self
):
wrapper
=
self
.
_default_update
()
...
...
Lib/test/test_property.py
View file @
8e0ae2a4
...
...
@@ -163,7 +163,7 @@ class PropertySubclassTests(unittest.TestCase):
Foo
.
spam
.
__doc__
,
"spam wrapped in property subclass"
)
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
<
=
2
,
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
>
=
2
,
"Docstrings are omitted with -O2 and above"
)
def
test_property_setter_copies_getter_docstring
(
self
):
class
Foo
(
object
):
...
...
@@ -196,7 +196,7 @@ class PropertySubclassTests(unittest.TestCase):
FooSub
.
spam
.
__doc__
,
"spam wrapped in property subclass"
)
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
<
=
2
,
@
unittest
.
skipIf
(
sys
.
flags
.
optimize
>
=
2
,
"Docstrings are omitted with -O2 and above"
)
def
test_property_new_getter_new_docstring
(
self
):
...
...
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