--- SOURCES/logging_tree-1.1 » python3 -m unittest discover logging_tree
....EEEE...
======================================================================
ERROR: test_2_dot_5_handlers (tests.test_format.FormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/threebean/rpmbuild/SOURCES/logging_tree-1.1/logging_tree/tests/test_format.py", line 137, in test_2_dot_5_handlers
ah(logging.handlers.TimedRotatingFileHandler('/bar/two.txt'))
File "/usr/lib64/python3.3/logging/handlers.py", line 203, in __init__
BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
File "/usr/lib64/python3.3/logging/handlers.py", line 58, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib64/python3.3/logging/__init__.py", line 965, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib64/python3.3/logging/__init__.py", line 987, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
TypeError: __init__() got an unexpected keyword argument 'encoding'
======================================================================
ERROR: test_2_dot_6_handlers (tests.test_format.FormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/threebean/rpmbuild/SOURCES/logging_tree-1.1/logging_tree/tests/test_format.py", line 148, in test_2_dot_6_handlers
ah(logging.handlers.WatchedFileHandler('/bar/three.txt'))
File "/usr/lib64/python3.3/logging/handlers.py", line 421, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib64/python3.3/logging/__init__.py", line 965, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib64/python3.3/logging/__init__.py", line 987, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
TypeError: __init__() got an unexpected keyword argument 'encoding'
======================================================================
ERROR: test_fancy_tree (tests.test_format.FormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/threebean/rpmbuild/SOURCES/logging_tree-1.1/logging_tree/tests/test_format.py", line 78, in test_fancy_tree
log.addHandler(logging.FileHandler('/foo/log.txt'))
File "/usr/lib64/python3.3/logging/__init__.py", line 965, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib64/python3.3/logging/__init__.py", line 987, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
TypeError: __init__() got an unexpected keyword argument 'encoding'
======================================================================
ERROR: test_most_handlers (tests.test_format.FormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/threebean/rpmbuild/SOURCES/logging_tree-1.1/logging_tree/tests/test_format.py", line 107, in test_most_handlers
'/bar/one.txt', maxBytes=10000, backupCount=3))
File "/usr/lib64/python3.3/logging/handlers.py", line 151, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib64/python3.3/logging/handlers.py", line 58, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib64/python3.3/logging/__init__.py", line 965, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib64/python3.3/logging/__init__.py", line 987, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
TypeError: __init__() got an unexpected keyword argument 'encoding'
----------------------------------------------------------------------
Ran 11 tests in 0.002s
FAILED (errors=4)