Skip to content

Commit

Permalink
Fix tests on python3
Browse files Browse the repository at this point in the history
  • Loading branch information
volo-zyko committed Jul 30, 2017
1 parent b362e5f commit 83bcb36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ def test_parse_malformed_diff(self):
def test_parse_malformed_diff_longer_than_expected(self):
"""Parse malformed file with non-terminated hunk."""
utf8_file = os.path.join(self.samples_dir, 'samples/sample6.diff')
with open(utf8_file, 'rb') as diff_file:
with open(utf8_file, 'r') as diff_file:
self.assertRaises(UnidiffParseError, PatchSet, diff_file)

def test_parse_malformed_diff_shorter_than_expected(self):
"""Parse malformed file with non-terminated hunk."""
utf8_file = os.path.join(self.samples_dir, 'samples/sample7.diff')
with open(utf8_file, 'rb') as diff_file:
with open(utf8_file, 'r') as diff_file:
self.assertRaises(UnidiffParseError, PatchSet, diff_file)

def test_diff_lines_linenos(self):
Expand Down

0 comments on commit 83bcb36

Please sign in to comment.