]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix failing test for Zone.to_file 97/head
authorPetr Viktorin <pviktori@redhat.com>
Thu, 21 May 2015 11:29:32 +0000 (13:29 +0200)
committerPetr Viktorin <pviktori@redhat.com>
Thu, 21 May 2015 11:29:32 +0000 (13:29 +0200)
commit8646a0410cefa18485fc1f8eaebb7faa2c964ccf
treeef129d50497eda122e06b02c3bd97143c94888f8
parent0b8ae7fd1107f330f94afc03311f233d51968a66
Fix failing test for Zone.to_file

A fix for https://github.com/rthalley/dnspython/issues/94

Make the to_file method work on string files, unless explicitly told
to do binary encoding.
Take the line terminator from os, rather than relying on the print
function.

Change the test to use a text file rather than binary, and add a new
test for to_file with a binary file.
dns/zone.py
tests/test_zone.py