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
68201bdb
Kaydet (Commit)
68201bdb
authored
Eyl 13, 2010
tarafından
Hirokazu Yamamoto
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #9313: Use unittest.skipUnless to skip old MSVC.
üst
a87b383a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
test_msvc9compiler.py
Lib/distutils/tests/test_msvc9compiler.py
+5
-14
No files found.
Lib/distutils/tests/test_msvc9compiler.py
Dosyayı görüntüle @
68201bdb
...
...
@@ -60,7 +60,12 @@ _CLEANED_MANIFEST = """\
</dependency>
</assembly>"""
if
sys
.
platform
==
"win32"
:
from
distutils.msvccompiler
import
get_build_version
@unittest.skipUnless
(
sys
.
platform
==
"win32"
,
"These tests are only for win32"
)
@unittest.skipUnless
(
get_build_version
()
>=
8.0
,
"These tests are only for"
" MSVC8.0 or above"
)
class
msvc9compilerTestCase
(
support
.
TempdirManager
,
unittest
.
TestCase
):
...
...
@@ -68,10 +73,6 @@ class msvc9compilerTestCase(support.TempdirManager,
# makes sure query_vcvarsall throws
# a DistutilsPlatformError if the compiler
# is not found
from
distutils.msvccompiler
import
get_build_version
if
get_build_version
()
<
8.0
:
# this test is only for MSVC8.0 or above
return
from
distutils.msvc9compiler
import
query_vcvarsall
def
_find_vcvarsall
(
version
):
return
None
...
...
@@ -86,11 +87,6 @@ class msvc9compilerTestCase(support.TempdirManager,
msvc9compiler
.
find_vcvarsall
=
old_find_vcvarsall
def
test_reg_class
(
self
):
from
distutils.msvccompiler
import
get_build_version
if
get_build_version
()
<
8.0
:
# this test is only for MSVC8.0 or above
return
from
distutils.msvc9compiler
import
Reg
self
.
assertRaises
(
KeyError
,
Reg
.
get_value
,
'xxx'
,
'xxx'
)
...
...
@@ -109,11 +105,6 @@ class msvc9compilerTestCase(support.TempdirManager,
self
.
assertTrue
(
'Desktop'
in
keys
)
def
test_remove_visual_c_ref
(
self
):
from
distutils.msvccompiler
import
get_build_version
if
get_build_version
()
<
8.0
:
# this test is only for MSVC8.0 or above
return
from
distutils.msvc9compiler
import
MSVCCompiler
tempdir
=
self
.
mkdtemp
()
manifest
=
os
.
path
.
join
(
tempdir
,
'manifest'
)
...
...
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