diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2020-11-27 15:22:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-27 16:22:30 -0500 |
commit | 09b5d7071846a7abdb8061711ac0d2e561f7260a (patch) | |
tree | 6be38a35f4bfcfcfac4536ea31091b0646cb5034 /tests | |
parent | 3562df8732f66848342874526d0ce12392d7d62e (diff) | |
download | pyopenssl-git-09b5d7071846a7abdb8061711ac0d2e561f7260a.tar.gz |
fix a memleak (#967)
* fix a memleak
* black
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_crypto.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py index 62b1690..265d31e 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -1625,6 +1625,9 @@ class TestX509Req(_PKeyInteractionTestsMixin): assert exts[1].get_short_name() == b"keyUsage" assert exts[1].get_critical() == 0 assert exts[1].get_data() == b"\x03\x02\x07\x80" + # Requesting it a second time should return the same list + exts = request.get_extensions() + assert len(exts) == 2 def test_add_extensions_wrong_args(self): """ |