@@ -141,6 +141,8 @@ def test_fcntl_64_bit(self):
141141 finally :
142142 os .close (fd )
143143
144+ # TODO: RUSTPYTHON, AttributeError: module 'fcntl' has no attribute 'flock'
145+ @unittest .expectedFailure
144146 def test_flock (self ):
145147 # Solaris needs readable file for shared lock
146148 self .f = open (TESTFN , 'wb+' )
@@ -155,6 +157,8 @@ def test_flock(self):
155157 self .assertRaises (ValueError , fcntl .flock , - 1 , fcntl .LOCK_SH )
156158 self .assertRaises (TypeError , fcntl .flock , 'spam' , fcntl .LOCK_SH )
157159
160+ # TODO: RUSTPYTHON, AttributeError: module 'fcntl' has no attribute 'lockf'
161+ @unittest .expectedFailure
158162 @unittest .skipIf (platform .system () == "AIX" , "AIX returns PermissionError" )
159163 def test_lockf_exclusive (self ):
160164 self .f = open (TESTFN , 'wb+' )
@@ -166,6 +170,8 @@ def test_lockf_exclusive(self):
166170 fcntl .lockf (self .f , fcntl .LOCK_UN )
167171 self .assertEqual (p .exitcode , 0 )
168172
173+ # TODO: RUSTPYTHON, AttributeError: module 'fcntl' has no attribute 'lockf'
174+ @unittest .expectedFailure
169175 @unittest .skipIf (platform .system () == "AIX" , "AIX returns PermissionError" )
170176 def test_lockf_share (self ):
171177 self .f = open (TESTFN , 'wb+' )
0 commit comments