summaryrefslogtreecommitdiff
path: root/tests/test_data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-21 07:46:04 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-21 07:46:04 -0400
commita879bf94e14b30f7a88111c646144d01f735cb44 (patch)
treee91712ee5a30e61cdbf0c05c9105b48b36585f67 /tests/test_data.py
parentbfb99cc71c24cb22e497c86d57aba482aefc56f8 (diff)
downloadpython-coveragepy-git-a879bf94e14b30f7a88111c646144d01f735cb44.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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_data.py b/tests/test_data.py
index ea6b0df0..ec3a6786 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)