archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-pysmf / repos / community-x86_64 / update-pytest-references.patch
blob9d4566112411ce49575e428f38958e6f7f24dcb0
1 --- a/test/test_smf.py
2 +++ b/test/test_smf.py
3 @@ -1,6 +1,6 @@
4 from os.path import dirname, join
6 -import py.test
7 +import pytest
8 import smf
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, '')
27 b = smf.SMF()
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')