Skip to content

Commit 16ca520

Browse files
committed
fixes py3.4 tests
1 parent 1beb67f commit 16ca520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_issues.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_issue_81a(monkeypatch):
122122
monkeypatch.setattr('demo.admin.ActionsModelAdmin.fields', ('id',))
123123
with pytest.raises(SystemCheckError) as e:
124124
call_command('check')
125-
assert 'concurrency.A001' in e.value.message
125+
assert 'concurrency.A001' in str(e.value)
126126

127127

128128
@skipIfDjangoVersion("<(1,11)")
@@ -136,4 +136,4 @@ def test_issue_81b(monkeypatch):
136136
monkeypatch.setattr('demo.admin.ActionsModelAdmin.fieldsets', fieldsets)
137137
with pytest.raises(SystemCheckError) as e:
138138
call_command('check')
139-
assert 'concurrency.A002' in e.value.message
139+
assert 'concurrency.A002' in str(e.value)

0 commit comments

Comments
 (0)