Coverage for cogapp/backward.py : 66.67%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
"""Compatibility between Py2 and Py3."""
string_types = (str,bytes) bytes_types = (bytes,) def b(s): return s.encode("latin-1") def to_bytes(s): return s.encode('utf8') else:
# Pythons 2 and 3 differ on where to get StringIO except ImportError: from io import StringIO
"""Does `unittest.TestCase` have `method` defined?"""
"""Just like unittest.TestCase, but with assert methods added.
Designed to be compatible with 3.1 unittest. Methods are only defined if `unittest` doesn't have them.
""" # pylint: disable=missing-docstring
|