Skip to content

Commit f1287e6

Browse files
committed
tests: Py3.x fix.
1 parent a1f2ec2 commit f1287e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/module_finder_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_main(self):
122122

123123
# linecache adds a line ending to the final line if one is missing.
124124
actual_src = open(path, 'rb').read()
125-
if actual_src[-1] != b('\n'):
125+
if actual_src[-1:] != b('\n'):
126126
actual_src += b('\n')
127127

128128
self.assertEquals(src, actual_src)

0 commit comments

Comments
 (0)