Fix #17197: profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules.
Issue #1470548: Add test for fragment producing with XMLGenerator.
Issue #1470548: Add test for fragment producing with XMLGenerator.
Issue #1470548: Add test for fragment producing with XMLGenerator.
Issue #17220: Little cleanup of _bootstrap.py.
Issue #15083: Convert ElementTree doctests to unittests.
Issue #15083: Convert ElementTree doctests to unittests.
Issue #17220: two fixes for changeset 2528e4aea338.

First, because the mtime can exceed 4 bytes, make sure to mask it down to 4
bytes before getting its little-endian representation for writing out to a .pyc
file.

Two, cap an rsplit() call to 1 split, else can lead to too many values being
returned for unpacking.