Skip to content

Commit

Permalink
Comply with 79 max-line-length
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Aug 17, 2017
1 parent 7ce07d2 commit 797d762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion mutagen/wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def insert_chunk(self, id_):
check_id(id_)

self._RiffFile__fileobj.seek(self.__next_offset)
self._RiffFile__fileobj.write(pack('<4si', id_.ljust(4).encode('ascii'), 0))
self._RiffFile__fileobj.write(pack('<4si',
id_.ljust(4).encode('ascii'), 0))
self._RiffFile__fileobj.seek(self.__next_offset)
chunk = RiffChunkHeader(self._RiffFile__fileobj)
self[u'RIFF']._update_size(self[u'RIFF'].data_size + chunk.size)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def test_sample_rate(self):
44100)

def test_number_of_samples(self):
self.failUnlessEqual(self.wav_pcm_2s_16000_08_ID3v23.info.number_of_samples,
32000)
self.failUnlessEqual(self.wav_pcm_2s_44100_16_ID3v23.info.number_of_samples,
88200)
self.failUnlessEqual(self.wav_pcm_2s_16000_08_ID3v23.
info.number_of_samples, 32000)
self.failUnlessEqual(self.wav_pcm_2s_44100_16_ID3v23.
info.number_of_samples, 88200)

def test_length(self):
self.failUnlessAlmostEqual(self.wav_pcm_2s_16000_08_ID3v23.info.length,
Expand Down

0 comments on commit 797d762

Please sign in to comment.