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
3bc3aaab
Commit
3bc3aaab
authored
Feb 18, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20667: test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
OpenBSD older than 5.5
parent
79c3bcf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
Lib/test/support/__init__.py
Lib/test/support/__init__.py
+10
-0
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_events.py
+3
-0
No files found.
Lib/test/support/__init__.py
View file @
3bc3aaab
...
...
@@ -78,6 +78,7 @@ __all__ = [
"create_empty_file"
,
"can_symlink"
,
"fs_is_case_insensitive"
,
# unittest
"is_resource_enabled"
,
"requires"
,
"requires_freebsd_version"
,
"requires_openbsd_version"
,
"requires_linux_version"
,
"requires_mac_ver"
,
"check_syntax_error"
,
"TransientResource"
,
"time_out"
,
"socket_peer_reset"
,
"ioerror_peer_reset"
,
"transient_internet"
,
"BasicTestRunner"
,
"run_unittest"
,
"run_doctest"
,
...
...
@@ -467,6 +468,15 @@ def requires_freebsd_version(*min_version):
"""
return
_requires_unix_version
(
'FreeBSD'
,
min_version
)
def
requires_openbsd_version
(
*
min_version
):
"""Decorator raising SkipTest if the OS is OpenBSD and the OpenBSD version
is less than `min_version`.
For example, @requires_freebsd_version(5, 4) raises SkipTest if the FreeBSD
version is less than 5.4.
"""
return
_requires_unix_version
(
'OpenBSD'
,
min_version
)
def
requires_linux_version
(
*
min_version
):
"""Decorator raising SkipTest if the OS is Linux and the Linux version is
less than `min_version`.
...
...
Lib/test/test_asyncio/test_events.py
View file @
3bc3aaab
...
...
@@ -1622,6 +1622,9 @@ else:
# kqueue doesn't support character devices (PTY) on Mac OS X older
# than 10.9 (Maverick)
@
support
.
requires_mac_ver
(
10
,
9
)
# Issue #20667: KqueueEventLoopTests.test_read_pty_output()
# hangs on OpenBSD 5.4
@
support
.
requires_openbsd_version
(
5
,
5
)
def
test_read_pty_output
(
self
):
super
().
test_read_pty_output
()
...
...
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