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
07352b08
Kaydet (Commit)
07352b08
authored
May 14, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update __all__ and docstring.
üst
132bcf47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
support.py
Lib/test/support.py
+3
-1
No files found.
Lib/test/support.py
Dosyayı görüntüle @
07352b08
...
...
@@ -37,6 +37,7 @@ __all__ = [
"findfile"
,
"sortdict"
,
"check_syntax_error"
,
"open_urlresource"
,
"check_warnings"
,
"CleanImport"
,
"EnvironmentVarGuard"
,
"TransientResource"
,
"captured_output"
,
"captured_stdout"
,
"captured_stdin"
,
"captured_stderr"
,
"time_out"
,
"socket_peer_reset"
,
"ioerror_peer_reset"
,
"run_with_locale"
,
'temp_umask'
,
"transient_internet"
,
"set_memlimit"
,
"bigmemtest"
,
"bigaddrspacetest"
,
"BasicTestRunner"
,
...
...
@@ -891,7 +892,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
@contextlib.contextmanager
def
captured_output
(
stream_name
):
"""Return a context manager used by captured_stdout
and captured_stdin
"""Return a context manager used by captured_stdout
/stdin/stderr
that temporarily replaces the sys stream *stream_name* with a StringIO."""
import
io
orig_stdout
=
getattr
(
sys
,
stream_name
)
...
...
@@ -916,6 +917,7 @@ def captured_stderr():
def
captured_stdin
():
return
captured_output
(
"stdin"
)
def
gc_collect
():
"""Force as many objects as possible to be collected.
...
...
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