Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb0ffa1

Browse files
committed
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
2 parents 1337130 + 1dfb918 commit fb0ffa1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_fcntl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def get_lockdata():
3232
pid_t = 'l'
3333
lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0,
3434
fcntl.F_WRLCK, 0)
35+
elif sys.platform.startswith('gnukfreebsd'):
36+
lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
3537
elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
3638
lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
3739
else:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ Library
599599
Tests
600600
-----
601601

602+
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
603+
602604
- Issue #18396: Fix spurious test failure in test_signal on Windows when
603605
faulthandler is enabled (Patch by Jeremy Kloth)
604606

0 commit comments

Comments
 (0)