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
851cad76
Kaydet (Commit)
851cad76
authored
Mar 12, 2012
tarafından
Eric V. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make test_logging no longer fail if zlib not present. Closes #14256. Patch by Pedro Kroger.
üst
b69ef16f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
test_logging.py
Lib/test/test_logging.py
+7
-3
ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_logging.py
Dosyayı görüntüle @
851cad76
...
...
@@ -39,14 +39,13 @@ import socket
import
struct
import
sys
import
tempfile
from
test.support
import
captured_stdout
,
run_with_locale
,
run_unittest
,
patch
from
test.support
import
TestHandler
,
Matcher
from
test.support
import
(
captured_stdout
,
run_with_locale
,
run_unittest
,
patch
,
requires_zlib
,
TestHandler
,
Matcher
)
import
textwrap
import
time
import
unittest
import
warnings
import
weakref
import
zlib
try
:
import
threading
# The following imports are needed only for tests which
...
...
@@ -70,6 +69,10 @@ try:
except
ImportError
:
win32evtlogutil
=
None
win32evtlog
=
None
try
:
import
zlib
except
ImportError
:
pass
class
BaseTest
(
unittest
.
TestCase
):
...
...
@@ -3602,6 +3605,7 @@ class RotatingFileHandlerTest(BaseFileTest):
self
.
assertFalse
(
os
.
path
.
exists
(
namer
(
self
.
fn
+
".3"
)))
rh
.
close
()
@requires_zlib
def
test_rotator
(
self
):
def
namer
(
name
):
return
name
+
".gz"
...
...
Misc/ACKS
Dosyayı görüntüle @
851cad76
...
...
@@ -559,6 +559,7 @@ Holger Krekel
Michael Kremer
Fabian Kreutz
Cédric Krier
Pedro Kroger
Hannu Krosing
Andrej Krpic
Ivan Krstić
...
...
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