Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(207799)

Unified Diff: Lib/test/test_ssl.py

Issue 23001: Accept mutable bytes-like objects
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
--- a/Lib/test/test_ssl.py Wed Mar 18 21:36:23 2015 -0500
+++ b/Lib/test/test_ssl.py Thu Mar 19 13:16:44 2015 +0200
@@ -171,6 +171,8 @@ class BasicSocketTests(unittest.TestCase
self.assertRaises(TypeError, ssl.RAND_egd, 1)
self.assertRaises(TypeError, ssl.RAND_egd, 'foo', 1)
ssl.RAND_add("this is a random string", 75.0)
+ ssl.RAND_add(b"this is a random bytes object", 75.0)
+ ssl.RAND_add(bytearray(b"this is a random bytearray object"), 75.0)
@unittest.skipUnless(os.name == 'posix', 'requires posix')
def test_random_fork(self):

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+