diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-21 07:46:04 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-21 07:46:04 -0400 |
commit | 142cc3e30a7e143accb5ac8654b7facb8c185cd4 (patch) | |
tree | 02b9f3588cea8ee32bcc8e3fc0ec66ee2d58a7a2 /tests/test_data.py | |
parent | b254ef44d94e554820f269c1abd023e9c36c2d67 (diff) | |
download | python-coveragepy-142cc3e30a7e143accb5ac8654b7facb8c185cd4.tar.gz |
Change CoverageData.read and .write to .read_fileobj and .write_fileobj
This makes the break from v3 to v4 very clear and introspectable, and
.read/.write were bad names for those methods anyway.
Diffstat (limited to 'tests/test_data.py')
-rw-r--r-- | tests/test_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_data.py b/tests/test_data.py index ea6b0df..ec3a678 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -397,11 +397,11 @@ class CoverageDataTest(DataTestHelpers, CoverageTest): covdata1 = CoverageData() covdata1.add_arcs(ARCS_3) stringio = StringIO() - covdata1.write(stringio) + covdata1.write_fileobj(stringio) stringio.seek(0) covdata2 = CoverageData() - covdata2.read(stringio) + covdata2.read_fileobj(stringio) self.assert_arcs3_data(covdata2) |