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
7bfce066
Commit
7bfce066
authored
Mar 24, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_os: use @support.requires_linux_version
parent
5ae7ac38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Lib/test/test_os.py
Lib/test/test_os.py
+4
-5
No files found.
Lib/test/test_os.py
View file @
7bfce066
...
...
@@ -15,7 +15,6 @@ import locale
import
mmap
import
os
import
pickle
import
platform
import
re
import
shutil
import
signal
...
...
@@ -2456,14 +2455,14 @@ def supports_extended_attributes():
return
False
finally
:
support
.
unlink
(
support
.
TESTFN
)
# Kernels < 2.6.39 don't respect setxattr flags.
kernel_version
=
platform
.
release
()
m
=
re
.
match
(
"2.6.(
\
d{
1
,2})"
,
kernel_version
)
return
m
is
None
or
int
(
m
.
group
(
1
))
>=
39
return
True
@
unittest
.
skipUnless
(
supports_extended_attributes
(),
"no non-broken extended attribute support"
)
# Kernels < 2.6.39 don't respect setxattr flags.
@
support
.
requires_linux_version
(
2
,
6
,
39
)
class
ExtendedAttributeTests
(
unittest
.
TestCase
):
def
tearDown
(
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