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
9c48da74
Kaydet (Commit)
9c48da74
authored
Kas 01, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed stdout alteration in test_distutils
üst
84ee9e25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
test_build_py.py
Lib/distutils/tests/test_build_py.py
+2
-1
test_util.py
Lib/distutils/tests/test_util.py
+4
-0
No files found.
Lib/distutils/tests/test_build_py.py
Dosyayı görüntüle @
9c48da74
...
...
@@ -69,6 +69,7 @@ class BuildPyTestCase(support.TempdirManager,
open
(
os
.
path
.
join
(
testdir
,
"testfile"
),
"w"
)
.
close
()
os
.
chdir
(
sources
)
old_stdout
=
sys
.
stdout
sys
.
stdout
=
StringIO
.
StringIO
()
try
:
...
...
@@ -87,7 +88,7 @@ class BuildPyTestCase(support.TempdirManager,
finally
:
# Restore state.
os
.
chdir
(
cwd
)
sys
.
stdout
=
sys
.
__stdout__
sys
.
stdout
=
old_stdout
def
test_dont_write_bytecode
(
self
):
# makes sure byte_compile is not used
...
...
Lib/distutils/tests/test_util.py
Dosyayı görüntüle @
9c48da74
...
...
@@ -60,6 +60,8 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
util
.
find_executable
=
self
.
_find_executable
self
.
_exes
=
{}
self
.
old_popen
=
subprocess
.
Popen
self
.
old_stdout
=
sys
.
stdout
self
.
old_stderr
=
sys
.
stderr
FakePopen
.
test_class
=
self
subprocess
.
Popen
=
FakePopen
...
...
@@ -79,6 +81,8 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
sysconfig
.
_config_vars
=
copy
(
self
.
_config_vars
)
util
.
find_executable
=
self
.
old_find_executable
subprocess
.
Popen
=
self
.
old_popen
sys
.
old_stdout
=
self
.
old_stdout
sys
.
old_stderr
=
self
.
old_stderr
super
(
UtilTestCase
,
self
)
.
tearDown
()
def
_set_uname
(
self
,
uname
):
...
...
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