aboutsummaryrefslogtreecommitdiffstats
path: root/tests/x509/test_x509.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-10-11 22:01:29 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-10-12 10:01:29 +0800
commit31034a03227ebfe63f4025cd95137f116cd4236a (patch)
tree33454544ff3f1f2eec9b7225a681832dd999ebd3 /tests/x509/test_x509.py
parenta87daea52b698a59664d852ecad567a742576265 (diff)
downloadcryptography-31034a03227ebfe63f4025cd95137f116cd4236a.tar.gz
cryptography-31034a03227ebfe63f4025cd95137f116cd4236a.tar.bz2
cryptography-31034a03227ebfe63f4025cd95137f116cd4236a.zip
Inline calls to bit_length now that it's trivial (#3966)
* Inline calls to bit_length now that it's trivial * unused imports * An comment
Diffstat (limited to 'tests/x509/test_x509.py')
-rw-r--r--tests/x509/test_x509.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/x509/test_x509.py b/tests/x509/test_x509.py
index a07ffb3a..97b5a749 100644
--- a/tests/x509/test_x509.py
+++ b/tests/x509/test_x509.py
@@ -3981,4 +3981,4 @@ def test_random_serial_number(monkeypatch):
assert (
serial_number == utils.int_from_bytes(sample_data, "big") >> 1
)
- assert utils.bit_length(serial_number) < 160
+ assert serial_number.bit_length() < 160