summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorstratakis <cstratak@redhat.com>2019-12-03 15:35:54 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-03 15:35:54 (GMT)
commit894331838b256412c95d54051ec46a1cb96f52e7 (patch)
tree98ee24906fa84474b162e5c059f64a9dd522dbde /Lib/test
parenta62ad4730c9b575f140f24074656c0257c86a09a (diff)
downloadcpython-894331838b256412c95d54051ec46a1cb96f52e7.zip
cpython-894331838b256412c95d54051ec46a1cb96f52e7.tar.gz
cpython-894331838b256412c95d54051ec46a1cb96f52e7.tar.bz2
bpo-38270: Fix indentation of test_hmac assertions (GH-17446)
Since https://github.com/python/cpython/commit/c64a1a61e6fc542cada40eb069a239317e1af36e 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
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_hmac.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_hmac.py b/Lib/test/test_hmac.py
index ea00367..23c108f 100644
--- a/Lib/test/test_hmac.py
+++ b/Lib/test/test_hmac.py
@@ -367,7 +367,7 @@ class ConstructorTestCase(unittest.TestCase):
digestmod="sha256")
except Exception:
self.fail("Constructor call with bytearray arguments raised exception.")
- self.assertEqual(h.hexdigest(), self.expected)
+ self.assertEqual(h.hexdigest(), self.expected)
@requires_hashdigest('sha256')
def test_with_memoryview_msg(self):
@@ -375,7 +375,7 @@ class ConstructorTestCase(unittest.TestCase):
h = hmac.HMAC(b"key", memoryview(b"hash this!"), digestmod="sha256")
except Exception:
self.fail("Constructor call with memoryview msg raised exception.")
- self.assertEqual(h.hexdigest(), self.expected)
+ self.assertEqual(h.hexdigest(), self.expected)
@requires_hashdigest('sha256')
def test_withmodule(self):