Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
7dcb83cd
Kaydet (Commit)
7dcb83cd
authored
Agu 30, 2007
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1709599: Run test_1565150 only if the file system is NTFS.
üst
75c23bdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
test_os.py
Lib/test/test_os.py
+14
-4
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_os.py
Dosyayı görüntüle @
7dcb83cd
...
@@ -235,10 +235,20 @@ class StatAttributeTests(unittest.TestCase):
...
@@ -235,10 +235,20 @@ class StatAttributeTests(unittest.TestCase):
# Restrict test to Win32, since there is no guarantee other
# Restrict test to Win32, since there is no guarantee other
# systems support centiseconds
# systems support centiseconds
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
def
test_1565150
(
self
):
def
get_file_system
(
path
):
t1
=
1159195039.25
import
os
os
.
utime
(
self
.
fname
,
(
t1
,
t1
))
root
=
os
.
path
.
splitdrive
(
os
.
path
.
realpath
(
"."
))[
0
]
+
'
\\
'
self
.
assertEquals
(
os
.
stat
(
self
.
fname
)
.
st_mtime
,
t1
)
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
):
def
test_1686475
(
self
):
# Verify that an open file can be stat'ed
# Verify that an open file can be stat'ed
...
...
Misc/NEWS
Dosyayı görüntüle @
7dcb83cd
...
@@ -240,6 +240,8 @@ Core and builtins
...
@@ -240,6 +240,8 @@ Core and builtins
Library
Library
-------
-------
- Bug #1709599: Run test_1565150 only if the file system is NTFS.
- When encountering a password-protected robots.txt file the RobotFileParser
- When encountering a password-protected robots.txt file the RobotFileParser
no longer prompts interactively for a username and password (bug 813986).
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