@@ -11,7 +11,8 @@ Python 2's :class:`str`, rather than a true implementation of the Python
1111
1212``future `` contains a backport of the :mod: `bytes ` object from Python 3
1313which passes most of the Python 3 tests for :mod: `bytes `. (See
14- :ref: `bytes-test-results `.) You can use it as follows::
14+ ``future/tests/test_bytes.py `` in the source tree.) You can use it as
15+ follows::
1516
1617 from future.builtins import bytes
1718
@@ -56,25 +57,26 @@ code incompatibilities caused by the many differences between Py3 bytes
5657and Py2 strings.
5758
5859
59- .. _bytes-test-results :
60-
61- Test results
62- ~~~~~~~~~~~~
63-
64- For reference, when not using the backported :class: `bytes ` object,
65- running the Py3.3 ``bytes `` unit tests in ``test_bytes.py `` on Py2 (after
66- fixing imports) gives this::
67-
68- --------------------------------------------------------------
69- Ran 203 tests in 0.209s
60+ ..
61+ .. _bytes-test-results:
7062
71- FAILED (failures=31, errors=55, skipped=1)
72- --------------------------------------------------------------
73-
74- The ``future `` backport of the Py3 :class: `bytes ` object passes most of
75- the Python 3 tests for ``bytes `` on Py2, except those requiring specific
76- wording in exception messages.
77-
78- See ``future/tests/test_bytes.py `` in the source for the unit tests that
79- are actually run.
63+ bytes test results
64+ ~~~~~~~~~~~~~~~~~~
65+
66+ For reference, when using Py2's default :class:`bytes` (i.e.
67+ :class:`str`), running the ``bytes`` unit tests from Python 3.3's
68+ ``test_bytes.py`` on Py2 (after fixing imports) gives this::
69+
70+ --------------------------------------------------------------
71+ Ran 203 tests in 0.209s
72+
73+ FAILED (failures=31, errors=55, skipped=1)
74+ --------------------------------------------------------------
75+
76+ Using ``future``'s backported :class:`bytes` object passes most of
77+ the same Python 3.3 tests on Py2, except those requiring specific
78+ wording in exception messages.
79+
80+ See ``future/tests/test_bytes.py`` in the source for the actual set
81+ of unit tests that are actually run.
8082
0 commit comments