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
39f1f452
Commit
39f1f452
authored
Aug 30, 2007
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1709599: Run test_1565150 only if the file system is NTFS.
parent
aa1e005d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
Lib/test/test_os.py
Lib/test/test_os.py
+14
-4
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_os.py
View file @
39f1f452
...
...
@@ -226,10 +226,20 @@ class StatAttributeTests(unittest.TestCase):
# Restrict test to Win32, since there is no guarantee other
# systems support centiseconds
if
sys
.
platform
==
'win32'
:
def
test_1565150
(
self
):
t1
=
1159195039.25
os
.
utime
(
self
.
fname
,
(
t1
,
t1
))
self
.
assertEquals
(
os
.
stat
(
self
.
fname
).
st_mtime
,
t1
)
def
get_file_system
(
path
):
import
os
root
=
os
.
path
.
splitdrive
(
os
.
path
.
realpath
(
"."
))[
0
]
+
'
\
\
'
import
ctypes
kernel32
=
ctypes
.
windll
.
kernel32
buf
=
ctypes
.
create_string_buffer
(
""
,
100
)
if
kernel32
.
GetVolumeInformationA
(
root
,
None
,
0
,
None
,
None
,
None
,
buf
,
len
(
buf
)):
return
buf
.
value
if
get_file_system
(
test_support
.
TESTFN
)
==
"NTFS"
:
def
test_1565150
(
self
):
t1
=
1159195039.25
os
.
utime
(
self
.
fname
,
(
t1
,
t1
))
self
.
assertEquals
(
os
.
stat
(
self
.
fname
).
st_mtime
,
t1
)
def
test_1686475
(
self
):
# Verify that an open file can be stat'ed
...
...
Misc/NEWS
View file @
39f1f452
...
...
@@ -26,6 +26,8 @@ Core and builtins
Library
-------
- Bug #1709599: Run test_1565150 only if the file system is NTFS.
- When encountering a password-protected robots.txt file the RobotFileParser
no longer prompts interactively for a username and password (bug 813986).
...
...
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