Skip to content

Commit

Permalink
Fixing "unclosed files" warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bugchecker authored Oct 3, 2019
1 parent 81a94e4 commit c8be3fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyscreeze/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
whichProc = subprocess.Popen(
['which', 'scrot'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
scrotExists = whichProc.wait() == 0
whichProc.communicate()
except OSError as ex:
if ex.errno == errno.ENOENT:
# if there is no "which" program to find scrot, then assume there
Expand Down

0 comments on commit c8be3fa

Please sign in to comment.