Files
deb-python-testtools/testtools/utils.py
Robert Collins ddbb6ce781 testtools.utils has been renamed to testtools.compat. Importing
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.
2010-06-23 12:32:51 +12:00

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