Skip to content

Commit cfdaf92

Browse files
[3.8] bpo-38270: Fix indentation of test_hmac assertions (GH-17446) (GH-17450)
Since c64a1a6 two assertions were indented and thus ignored when running test_hmac. This PR fixes it. As the change is quite trivial I didn't add a NEWS entry. https://bugs.python.org/issue38270 (cherry picked from commit 8943318) Co-authored-by: stratakis <[email protected]> https://bugs.python.org/issue38270 Automerge-Triggered-By: @tiran
1 parent f4a21d3 commit cfdaf92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_hmac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,15 @@ def test_with_bytearray(self):
367367
digestmod="sha256")
368368
except Exception:
369369
self.fail("Constructor call with bytearray arguments raised exception.")
370-
self.assertEqual(h.hexdigest(), self.expected)
370+
self.assertEqual(h.hexdigest(), self.expected)
371371

372372
@requires_hashdigest('sha256')
373373
def test_with_memoryview_msg(self):
374374
try:
375375
h = hmac.HMAC(b"key", memoryview(b"hash this!"), digestmod="sha256")
376376
except Exception:
377377
self.fail("Constructor call with memoryview msg raised exception.")
378-
self.assertEqual(h.hexdigest(), self.expected)
378+
self.assertEqual(h.hexdigest(), self.expected)
379379

380380
@requires_hashdigest('sha256')
381381
def test_withmodule(self):

0 commit comments

Comments
 (0)