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
5da9a51d
Kaydet (Commit)
5da9a51d
authored
Ock 29, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed test_make_distribution so it runs on any platform, as long as tar an gzip are available
üst
707c5937
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
test_sdist.py
Lib/distutils/tests/test_sdist.py
+6
-9
No files found.
Lib/distutils/tests/test_sdist.py
Dosyayı görüntüle @
5da9a51d
...
@@ -10,7 +10,7 @@ from distutils.command.sdist import sdist
...
@@ -10,7 +10,7 @@ from distutils.command.sdist import sdist
from
distutils.core
import
Distribution
from
distutils.core
import
Distribution
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.errors
import
DistutilsExecError
from
distutils.errors
import
DistutilsExecError
from
distutils.spawn
import
spawn
from
distutils.spawn
import
find_executable
CURDIR
=
os
.
path
.
dirname
(
__file__
)
CURDIR
=
os
.
path
.
dirname
(
__file__
)
TEMP_PKG
=
join
(
CURDIR
,
'temppkg'
)
TEMP_PKG
=
join
(
CURDIR
,
'temppkg'
)
...
@@ -111,15 +111,12 @@ class sdistTestCase(PyPIRCCommandTestCase):
...
@@ -111,15 +111,12 @@ class sdistTestCase(PyPIRCCommandTestCase):
def
test_make_distribution
(
self
):
def
test_make_distribution
(
self
):
self
.
_init_tmp_pkg
()
# check if tar and gzip are installed
if
(
find_executable
(
'tar'
)
is
None
or
find_executable
(
'gzip'
)
is
None
):
return
# check if tar is installed under win32
self
.
_init_tmp_pkg
()
if
sys
.
platform
==
'win32'
:
try
:
spawn
(
'tar --help'
)
except
DistutilsExecError
:
# let's return, no need to go further
return
# now building a sdist
# now building a sdist
dist
=
Distribution
()
dist
=
Distribution
()
...
...
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