Permalink
Browse files

Coverage

  • Loading branch information...
ppaez committed Feb 5, 2014
1 parent 638f22f commit d5f2582682201d595e71e04d9a6d0e73471e4ad8
Showing with 3 additions and 1 deletion.
  1. +3 −1 test_alsamidi.py
View
@@ -205,7 +205,9 @@ def setUp(self):
text = 'track melody\n' \
'6,1,0,1,2 5430786,20 0,130 0,1 108 82 0 0\n' \
'name = value'
- self.file.readlines.return_value = text.split('\n')
+ lines = text.split('\n')
+ self.file.readlines.return_value = lines
+ lines[0] = lines[0] + '\n'
alsamidi.open = Mock(return_value=self.file)
alsamidi.print = Mock()

0 comments on commit d5f2582

Please sign in to comment.