testtools.utils will now generate a deprecation warning. Add machinery for Python 2 to create unicode tracebacks like those used by Python 3. This means testtools no longer throws on encountering non-ascii filenames, source lines, or exception strings when displaying test results. Largely contributed by Martin[gz] with some tweaks from Robert Collins.
14 lines
397 B
Python
14 lines
397 B
Python
# Copyright (c) 2008-2010 testtools developers. See LICENSE for details.
|
|
|
|
"""Utilities for dealing with stuff in unittest.
|
|
|
|
Legacy - deprecated - use testtools.testsuite.iterate_tests
|
|
"""
|
|
|
|
import warnings
|
|
warnings.warn("Please import iterate_tests from testtools.testsuite - "
|
|
"testtools.utils is deprecated.", DeprecationWarning, stacklevel=2)
|
|
|
|
from testtools.testsuite import iterate_tests
|
|
|