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
cbb4f9ef
Kaydet (Commit)
cbb4f9ef
authored
May 14, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#6022 fixed test_get_outputs so it doesn't leaves a test file in the cwd
üst
87855540
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
test_build_ext.py
Lib/distutils/tests/test_build_ext.py
+10
-4
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/tests/test_build_ext.py
Dosyayı görüntüle @
cbb4f9ef
...
@@ -312,12 +312,18 @@ class BuildExtTestCase(support.TempdirManager,
...
@@ -312,12 +312,18 @@ class BuildExtTestCase(support.TempdirManager,
# issue #5977 : distutils build_ext.get_outputs
# issue #5977 : distutils build_ext.get_outputs
# returns wrong result with --inplace
# returns wrong result with --inplace
cmd
.
inplace
=
1
other_tmp_dir
=
os
.
path
.
realpath
(
self
.
mkdtemp
())
cmd
.
run
()
old_wd
=
os
.
getcwd
()
so_file
=
cmd
.
get_outputs
()[
0
]
os
.
chdir
(
other_tmp_dir
)
try
:
cmd
.
inplace
=
1
cmd
.
run
()
so_file
=
cmd
.
get_outputs
()[
0
]
finally
:
os
.
chdir
(
old_wd
)
self
.
assert_
(
os
.
path
.
exists
(
so_file
))
self
.
assert_
(
os
.
path
.
exists
(
so_file
))
so_dir
=
os
.
path
.
dirname
(
so_file
)
so_dir
=
os
.
path
.
dirname
(
so_file
)
self
.
assertEquals
(
so_dir
,
o
s
.
getcwd
()
)
self
.
assertEquals
(
so_dir
,
o
ther_tmp_dir
)
cmd
.
inplace
=
0
cmd
.
inplace
=
0
cmd
.
run
()
cmd
.
run
()
...
...
Misc/NEWS
Dosyayı görüntüle @
cbb4f9ef
...
@@ -293,6 +293,9 @@ Core and Builtins
...
@@ -293,6 +293,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #6022: a test file was created in the current working directory by
test_get_outputs in Distutils.
- Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source'
- Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source'
file is a binary. Patch by Brodie Rao, tests by Daniel Diniz.
file is a binary. Patch by Brodie Rao, tests by Daniel Diniz.
...
...
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