Skip to content

Commit f33dac3

Browse files
authored
Merge pull request #559 from requests/oauthlib-3.3.0
update to oauthlib 3.3.0
2 parents c003c22 + e64c48f commit f33dac3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
requests==2.31.0
2-
oauthlib[signedtoken]==3.2.2
2+
oauthlib[signedtoken]==3.3.0

tests/test_compliance_fixes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_fetch_access_token(self):
115115
authorization_response="https://i.b/?code=hello",
116116
)
117117
# Times should be close
118-
approx_expires_at = time.time() + 3600
118+
approx_expires_at = round(time.time()) + 3600
119119
actual_expires_at = token.pop("expires_at")
120120
self.assertAlmostEqual(actual_expires_at, approx_expires_at, places=2)
121121

@@ -289,7 +289,7 @@ def test_fetch_access_token(self):
289289
authorization_response="https://i.b/?code=hello",
290290
)
291291

292-
approx_expires_at = time.time() + 86400
292+
approx_expires_at = round(time.time()) + 86400
293293
actual_expires_at = token.pop("expires_at")
294294
self.assertAlmostEqual(actual_expires_at, approx_expires_at, places=2)
295295

0 commit comments

Comments
 (0)