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
ca8e7ec2
Kaydet (Commit)
ca8e7ec2
authored
Ara 24, 2009
tarafından
Ronald Oussoren
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unittests and news items for the patch in r77026.
üst
b5afe548
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
test_util.py
Lib/distutils/tests/test_util.py
+30
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/tests/test_util.py
Dosyayı görüntüle @
ca8e7ec2
...
@@ -119,6 +119,26 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
...
@@ -119,6 +119,26 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
sys
.
version
=
(
'2.5 (r25:51918, Sep 19 2006, 08:49:13) '
sys
.
version
=
(
'2.5 (r25:51918, Sep 19 2006, 08:49:13) '
'
\n
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]'
)
'
\n
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]'
)
sys
.
platform
=
'darwin'
sys
.
platform
=
'darwin'
self
.
_set_uname
((
'Darwin'
,
'macziade'
,
'8.11.1'
,
(
'Darwin Kernel Version 8.11.1: '
'Wed Oct 10 18:23:28 PDT 2007; '
'root:xnu-792.25.20~1/RELEASE_I386'
),
'PowerPC'
))
os
.
environ
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.3'
get_config_vars
()[
'CFLAGS'
]
=
(
'-fno-strict-aliasing -DNDEBUG -g '
'-fwrapv -O3 -Wall -Wstrict-prototypes'
)
maxint
=
sys
.
maxint
try
:
sys
.
maxint
=
2147483647
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-ppc'
)
sys
.
maxint
=
9223372036854775807
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-ppc64'
)
finally
:
sys
.
maxint
=
maxint
self
.
_set_uname
((
'Darwin'
,
'macziade'
,
'8.11.1'
,
self
.
_set_uname
((
'Darwin'
,
'macziade'
,
'8.11.1'
,
(
'Darwin Kernel Version 8.11.1: '
(
'Darwin Kernel Version 8.11.1: '
'Wed Oct 10 18:23:28 PDT 2007; '
'Wed Oct 10 18:23:28 PDT 2007; '
...
@@ -128,7 +148,15 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
...
@@ -128,7 +148,15 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
get_config_vars
()[
'CFLAGS'
]
=
(
'-fno-strict-aliasing -DNDEBUG -g '
get_config_vars
()[
'CFLAGS'
]
=
(
'-fno-strict-aliasing -DNDEBUG -g '
'-fwrapv -O3 -Wall -Wstrict-prototypes'
)
'-fwrapv -O3 -Wall -Wstrict-prototypes'
)
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-i386'
)
maxint
=
sys
.
maxint
try
:
sys
.
maxint
=
2147483647
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-i386'
)
sys
.
maxint
=
9223372036854775807
self
.
assertEquals
(
get_platform
(),
'macosx-10.3-x86_64'
)
finally
:
sys
.
maxint
=
maxint
# macbook with fat binaries (fat, universal or fat64)
# macbook with fat binaries (fat, universal or fat64)
os
.
environ
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.4'
os
.
environ
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.4'
...
@@ -173,6 +201,7 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
...
@@ -173,6 +201,7 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
self
.
assertEquals
(
get_platform
(),
'macosx-10.4-
%
s'
%
(
arch
,))
self
.
assertEquals
(
get_platform
(),
'macosx-10.4-
%
s'
%
(
arch
,))
# linux debian sarge
# linux debian sarge
os
.
name
=
'posix'
os
.
name
=
'posix'
sys
.
version
=
(
'2.3.5 (#1, Jul 4 2007, 17:28:59) '
sys
.
version
=
(
'2.3.5 (#1, Jul 4 2007, 17:28:59) '
...
...
Misc/NEWS
Dosyayı görüntüle @
ca8e7ec2
...
@@ -31,6 +31,9 @@ Core and Builtins
...
@@ -31,6 +31,9 @@ Core and Builtins
Library
Library
-------
-------
- Distutils now correctly identifies the build architecture as "x86_64"
when building on OSX 10.6 without "-arch" flags.
- Issue #7556: Distutils' msvc9compiler now opens the MSVC Manifest
- Issue #7556: Distutils' msvc9compiler now opens the MSVC Manifest
file in text mode.
file in text mode.
...
...
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