File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
importlib_resources/tests Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ v5.10.4
2
+ =======
3
+
4
+ * #280: Fixed one more ``EncodingWarning `` in test suite.
5
+
1
6
v5.10.3
2
7
=======
3
8
Original file line number Diff line number Diff line change @@ -56,11 +56,13 @@ def test_open_text_with_errors(self):
56
56
57
57
def test_open_binary_FileNotFoundError (self ):
58
58
target = resources .files (self .data ) / 'does-not-exist'
59
- self .assertRaises (FileNotFoundError , target .open , 'rb' )
59
+ with self .assertRaises (FileNotFoundError ):
60
+ target .open ('rb' )
60
61
61
62
def test_open_text_FileNotFoundError (self ):
62
63
target = resources .files (self .data ) / 'does-not-exist'
63
- self .assertRaises (FileNotFoundError , target .open )
64
+ with self .assertRaises (FileNotFoundError ):
65
+ target .open (encoding = 'utf-8' )
64
66
65
67
66
68
class OpenDiskTests (OpenTests , unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments