[docs] [issue37094] Provide an example for TestCase.skipTest in unittest doc

麦栋铖 report at bugs.python.org
Wed May 29 21:50:03 EDT 2019


New submission from 麦栋铖 <makdon at makdon.me>:

I found that there's an function TestCase.skipTest(reason)[0] supports skipping test in testing, but there's no example for this function in chapter Skipping tests[1] and expected failures

I create PR[2] for updating the example for TestCase.skipTest in unittest doc.
The example is from Lib/unittest/test, the test for unittest.

I am sorry for that i don't know if the issue tracker support markdown link syntax, so i just copy and paste the link below:

[0] https://docs.python.org/3.7/library/unittest.html#unittest.TestCase.skipTest
[1]https://docs.python.org/3.7/library/unittest.html#skipping-tests-and-expected-failures
[2]https://github.com/python/cpython/pull/13645

----------
assignee: docs at python
components: Documentation
messages: 343943
nosy: docs at python, 麦栋铖
priority: normal
pull_requests: 13561
severity: normal
status: open
title: Provide an example for TestCase.skipTest in unittest doc
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37094>
_______________________________________


More information about the docs mailing list