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
a4fdd599
Commit
a4fdd599
authored
Jan 28, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Fix skip conditions in some docstings tests.
parents
26f11665
8e0ae2a4
Changes
2
Hide 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 @
a4fdd599
...
...
@@ -321,7 +321,7 @@ class TestWraps(TestUpdateWrapper):
self
.
assertEqual
(
wrapper
.
__qualname__
,
f
.
__qualname__
)
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 @
a4fdd599
...
...
@@ -186,7 +186,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
):
...
...
@@ -219,7 +219,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