Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Catch FileNotFoundError exception#74

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

MetalDream666
Copy link
Contributor

When we want to find some Postgres process in testgres psutils lib first gets list of all system processes (children() function in testgres's auxiliary_processes). Next testgres asks for process name (cmdline() function), so psutils goes to /proc/pid/ in Linux. In case any of processes listed in previous step, we get FileNotFoundError

@MetalDream666MetalDream666force-pushed thePBCKP-136-catch-FileNotFoundError-exception branch 2 times, most recently frombb5b5b1 to3cb3501CompareMarch 23, 2023 11:26
@codecov
Copy link

codecovbot commentedMar 23, 2023
edited
Loading

Codecov Report

Merging#74 (64b99bc) intomaster (ceb1ee9) willincrease coverage by0.03%.
The diff coverage is100.00%.

❗ Current head64b99bc differs from pull request most recent head0e8b1c8. Consider uploading reports for the commit0e8b1c8 to get more accurate results

@@            Coverage Diff             @@##           master      #74      +/-   ##==========================================+ Coverage   95.62%   95.66%   +0.03%==========================================  Files          18       18                Lines        1692     1706      +14     ==========================================+ Hits         1618     1632      +14  Misses         74       74
Impacted FilesCoverage Δ
testgres/enums.py100.00% <100.00%> (ø)
tests/test_simple.py98.78% <100.00%> (+0.01%)⬆️

Help us with your feedback. Take ten seconds to tell ushow you rate us. Have a feature suggestion?Share it here.

@MetalDream666MetalDream666force-pushed thePBCKP-136-catch-FileNotFoundError-exception branch 9 times, most recently froma7e8fcf to28d5a4eCompareMarch 30, 2023 15:12
When we want to find some Postgres process in testgres psutils lib first gets list of all system processes (children() function in testgres's auxiliary_processes). Next testgres asks for process name (cmdline() function), so psutils goes to /proc/pid/ in Linux. In case any of processes listed in previous step, we get FileNotFoundError
@MetalDream666MetalDream666force-pushed thePBCKP-136-catch-FileNotFoundError-exception branch from28d5a4e to0e8b1c8CompareMarch 30, 2023 15:21
@daniel-95
Copy link

Looks good to me.

@asavchkov
Copy link
Contributor

Looks good to me too

@asavchkovasavchkov merged commit5c903cb intomasterApr 11, 2023
@asavchkovasavchkov deleted the PBCKP-136-catch-FileNotFoundError-exception branchApril 11, 2023 12:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@MetalDream666@daniel-95@asavchkov

[8]ページ先頭

©2009-2025 Movatter.jp