Skip to content

bpo-22367: Add test_lockf #17010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 7, 2019
Merged

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Oct 31, 2019

Before working on bpo-22367, I 'd like to add unit test for fcntl.lockf

https://bugs.python.org/issue22367

@@ -12,7 +12,6 @@
fcntl = import_module('fcntl')


# TODO - Write tests for flock() and lockf().
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the part about flock() still relevant?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/python/cpython/blob/master/Lib/test/test_fcntl.py#L127

test_flock already exists.
But if the test is not enough, the comment should be remain

@corona10
Copy link
Member Author

@serhiy-storchaka
Updated!

@miss-islington
Copy link
Contributor

Thanks @corona10 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @corona10 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-17084 is a backport of this pull request to the 3.8 branch.

@bedevere-bot
Copy link

GH-17085 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 7, 2019
(cherry picked from commit befa032)

Co-authored-by: Dong-hee Na <[email protected]>
miss-islington added a commit that referenced this pull request Nov 9, 2019
(cherry picked from commit befa032)

Co-authored-by: Dong-hee Na <[email protected]>
miss-islington added a commit that referenced this pull request Nov 9, 2019
(cherry picked from commit befa032)

Co-authored-by: Dong-hee Na <[email protected]>
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants