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

Unified Diff: Lib/test/test_fcntl.py

Issue 23001: Accept mutable bytes-like objects
Patch Set: Created 4 years, 8 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_fcntl.py Wed Mar 18 21:36:23 2015 -0500
+++ b/Lib/test/test_fcntl.py Thu Mar 19 13:16:44 2015 +0200
@@ -70,6 +70,7 @@ class TestFcntl(unittest.TestCase):
rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
if verbose:
print('String from fcntl with F_SETLKW: ', repr(rv))
+ fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, bytearray(lockdata))
self.f.close()
def test_fcntl_file_descriptor(self):

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