From a879bf94e14b30f7a88111c646144d01f735cb44 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 21 Aug 2015 07:46:04 -0400 Subject: 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. --- tests/test_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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) -- cgit v1.2.1