Skip to content

Commit 5f81dbc

Browse files
committed
test: python 2 & 3 compatibility issue
1 parent 489bf86 commit 5f81dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_save_with_specified_key_but_without_master_key(): # type: () -> None
131131
try:
132132
f.save()
133133
except LeanCloudError as e:
134-
if e.code == 1 and e.message.startswith("Unsupported file key"):
134+
if e.code == 1 and e.error.startswith("Unsupported file key"):
135135
pass
136136

137137

0 commit comments

Comments
 (0)