summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2012-03-12 05:47:07 (GMT)
committerEric V. Smith <eric@trueblade.com>2012-03-12 05:47:07 (GMT)
commite976fc74647f679519edde2a1e0b73ff711e079b (patch)
treeebdc63e2bc33b673ed894e4b9aa15f660897440e
parent68e994e9e4a30fd3195b6cca46ff057f43021fc8 (diff)
parent851cad76164bb8ebc84937bfd14a7ea00e4911bc (diff)
downloadcpython-e976fc74647f679519edde2a1e0b73ff711e079b.zip
cpython-e976fc74647f679519edde2a1e0b73ff711e079b.tar.gz
cpython-e976fc74647f679519edde2a1e0b73ff711e079b.tar.bz2
Merge.
-rw-r--r--Lib/test/test_logging.py10
-rw-r--r--Misc/ACKS1
2 files changed, 8 insertions, 3 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 98a2819..be84be6 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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"
diff --git a/Misc/ACKS b/Misc/ACKS
index 17ea919..49efa29 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -559,6 +559,7 @@ Holger Krekel
Michael Kremer
Fabian Kreutz
Cédric Krier
+Pedro Kroger
Hannu Krosing
Andrej Krpic
Ivan Krstić