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
ef110b18
Kaydet (Commit)
ef110b18
authored
Şub 18, 2019
tarafından
Michael Felt
Kaydeden (comit)
Miss Islington (bot)
Şub 18, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-35704: Prevent test_shutil fail result when AIX is 32-bit and MAXDATA < 0x20000000 (GH-11500)
https://bugs.python.org/issue35704
üst
09fbcd60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
test_shutil.py
Lib/test/test_shutil.py
+13
-0
2019-01-04-17-44-41.bpo-35633.wHfVop.rst
...EWS.d/next/Tests/2019-01-04-17-44-41.bpo-35633.wHfVop.rst
+2
-0
No files found.
Lib/test/test_shutil.py
Dosyayı görüntüle @
ef110b18
...
@@ -34,6 +34,7 @@ from test.support import TESTFN, FakePath
...
@@ -34,6 +34,7 @@ from test.support import TESTFN, FakePath
TESTFN2
=
TESTFN
+
"2"
TESTFN2
=
TESTFN
+
"2"
MACOS
=
sys
.
platform
.
startswith
(
"darwin"
)
MACOS
=
sys
.
platform
.
startswith
(
"darwin"
)
AIX
=
sys
.
platform
[:
3
]
==
'aix'
try
:
try
:
import
grp
import
grp
import
pwd
import
pwd
...
@@ -141,6 +142,17 @@ def supports_file2file_sendfile():
...
@@ -141,6 +142,17 @@ def supports_file2file_sendfile():
SUPPORTS_SENDFILE
=
supports_file2file_sendfile
()
SUPPORTS_SENDFILE
=
supports_file2file_sendfile
()
# AIX 32-bit mode, by default, lacks enough memory for the xz/lzma compiler test
# The AIX command 'dump -o program' gives XCOFF header information
# The second word of the last line in the maxdata value
# when 32-bit maxdata must be greater than 0x1000000 for the xz test to succeed
def
_maxdataOK
():
if
AIX
and
sys
.
maxsize
==
2147483647
:
hdrs
=
subprocess
.
getoutput
(
"/usr/bin/dump -o
%
s"
%
sys
.
executable
)
maxdata
=
hdrs
.
split
(
"
\n
"
)[
-
1
]
.
split
()[
1
]
return
int
(
maxdata
,
16
)
>=
0x20000000
else
:
return
True
class
TestShutil
(
unittest
.
TestCase
):
class
TestShutil
(
unittest
.
TestCase
):
...
@@ -1351,6 +1363,7 @@ class TestShutil(unittest.TestCase):
...
@@ -1351,6 +1363,7 @@ class TestShutil(unittest.TestCase):
self
.
check_unpack_archive
(
'bztar'
)
self
.
check_unpack_archive
(
'bztar'
)
@support.requires_lzma
@support.requires_lzma
@unittest.skipIf
(
AIX
and
not
_maxdataOK
(),
"AIX MAXDATA must be 0x20000000 or larger"
)
def
test_unpack_archive_xztar
(
self
):
def
test_unpack_archive_xztar
(
self
):
self
.
check_unpack_archive
(
'xztar'
)
self
.
check_unpack_archive
(
'xztar'
)
...
...
Misc/NEWS.d/next/Tests/2019-01-04-17-44-41.bpo-35633.wHfVop.rst
0 → 100644
Dosyayı görüntüle @
ef110b18
Add PermissionError to the Exception: list
patch by Michael Felt, aixtools
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