Skip to content

Commit

Permalink
write_kwargs -> dump_kwargs!
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Feb 3, 2019
1 parent 3e19384 commit 7acc554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/pants_test/util/test_dirutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ def test_rm_rf_no_such_file_not_an_error(self, file_name='./vanishing_file'):
touch(file_name)
rm_rf(file_name)

def assert_dump_and_read(self, test_content, write_kwargs, read_kwargs):
def assert_dump_and_read(self, test_content, dump_kwargs, read_kwargs):
with temporary_dir() as td:
test_filename = os.path.join(td, 'test.out')
# TODO: remove all deprecated usages of `binary_mode` and `mode` arguments to safe_file_dump()
# in this file when the deprecation period is over!
safe_file_dump(test_filename, test_content, **write_kwargs)
safe_file_dump(test_filename, test_content, **dump_kwargs)
self.assertEqual(read_file(test_filename, **read_kwargs), test_content)

def test_readwrite_file_binary(self):
Expand Down

0 comments on commit 7acc554

Please sign in to comment.