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
6bf51da9
Kaydet (Commit)
6bf51da9
authored
Şub 11, 2008
tarafından
Lars Gustäbel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make sure that xstar headers are read correctly.
üst
31f6bc01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
test_tarfile.py
Lib/test/test_tarfile.py
+9
-0
testtar.tar
Lib/test/testtar.tar
+0
-0
No files found.
Lib/test/test_tarfile.py
Dosyayı görüntüle @
6bf51da9
...
@@ -208,6 +208,15 @@ class MiscReadTest(ReadTest):
...
@@ -208,6 +208,15 @@ class MiscReadTest(ReadTest):
self
.
assert_
(
tarinfo
.
type
==
tarfile
.
DIRTYPE
,
self
.
assert_
(
tarinfo
.
type
==
tarfile
.
DIRTYPE
,
"v7 dirtype failed"
)
"v7 dirtype failed"
)
def
test_xstar_type
(
self
):
# The xstar format stores extra atime and ctime fields inside the
# space reserved for the prefix field. The prefix field must be
# ignored in this case, otherwise it will mess up the name.
try
:
self
.
tar
.
getmember
(
"misc/regtype-xstar"
)
except
KeyError
:
self
.
fail
(
"failed to find misc/regtype-xstar (mangled prefix?)"
)
def
test_check_members
(
self
):
def
test_check_members
(
self
):
for
tarinfo
in
self
.
tar
:
for
tarinfo
in
self
.
tar
:
self
.
assert_
(
int
(
tarinfo
.
mtime
)
==
07606136617
,
self
.
assert_
(
int
(
tarinfo
.
mtime
)
==
07606136617
,
...
...
Lib/test/testtar.tar
Dosyayı görüntüle @
6bf51da9
This diff was suppressed by a .gitattributes entry.
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