Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d0aa8 commit 11e2cb3Copy full SHA for 11e2cb3
CHANGELOG
@@ -4,6 +4,7 @@ History:
4
5
3.3.0 2018/08/xx
6
- Linux: add an error handler for the XServer to prevent interpreter crash (fix #61)
7
+ - tests: fix a ResourceWarning: unclosed file
8
- big code clean-up using black
9
10
3.2.1 2018/05/21
tests/conftest.py
@@ -53,4 +53,5 @@ def is_travis():
53
54
@pytest.fixture(scope="session")
55
def raw():
56
- return open("tests/res/monitor-1024x768.raw", "rb").read()
+ with open("tests/res/monitor-1024x768.raw", "rb") as f:
57
+ yield f.read()
0 commit comments