4 from os.path import dirname, join
10 EMPTY_1_TRACK_120_PPQN = ('MThd\x00\x00\x00\x06\x00\x00\x00\x01\x00\x78'
11 @@ -22,7 +22,7 @@ class TestLoadSave:
12 a = smf.SMF(TEST_MID1)
13 assert len(a.tracks) == 1
15 - py.test.raises(IOError, smf.SMF, 'nonexistent.mid')
16 + pytest.raises(IOError, smf.SMF, 'nonexistent.mid')
18 def test_load_from_memory(self):
19 a = smf.SMF(data=EMPTY_1_TRACK_120_PPQN)
20 @@ -35,10 +35,10 @@ class TestLoadSave:
21 with open(TEST_MID1, 'rb') as f1, open(TEST_MID2, 'rb') as f2:
22 assert f1.read() == f2.read()
24 - py.test.raises(IOError, a.save, '')
25 + pytest.raises(IOError, a.save, '')
28 - py.test.raises(IOError, b.save, TEST_MID2)
29 + pytest.raises(IOError, b.save, TEST_MID2)
31 # def test_save_to_memory(self):
32 # a = smf.SMF('test.mid')