Skip to content

Commit

Permalink
Merge pull request #1749 from ASFHyP3/dependabot/pip/flake8-6.1.0
Browse files Browse the repository at this point in the history
Bump flake8 from 6.0.0 to 6.1.0
  • Loading branch information
jtherrmann authored Aug 3, 2023
2 parents 95be6d9 + 1ac7d32 commit a41bf91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ moto[dynamodb]==4.1.14
pytest==7.4.0
PyYAML==6.0.1
responses==0.23.3
flake8==6.0.0
flake8==6.1.0
flake8-import-order==0.18.2
flake8-blind-except==0.2.1
flake8-builtins==2.1.0
Expand Down
8 changes: 5 additions & 3 deletions tests/test_api/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ def test_deserialize_token():

with pytest.raises(util.TokenDeserializeError) as e:
util.deserialize('foo')
assert type(e.value.__context__) == binascii.Error
assert type(e.value.__context__) is binascii.Error

with pytest.raises(util.TokenDeserializeError) as e:
util.deserialize('Zm9vbw==')
assert type(e.value.__context__) == json.JSONDecodeError
assert type(e.value.__context__) is json.JSONDecodeError

with pytest.raises(util.TokenDeserializeError) as e:
util.deserialize('fooo')
assert type(e.value.__context__) == UnicodeDecodeError
assert type(e.value.__context__) is UnicodeDecodeError


def test_token_handlers_invertable():
Expand Down

0 comments on commit a41bf91

Please sign in to comment.