File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class ParseException(Exception):
1313 pass
1414
1515
16- class NoMoreData (IOError ):
16+ class NoMoreData (OSError ):
1717 def __init__ (self , buf = None ):
1818 self .buf = buf
1919
@@ -89,15 +89,15 @@ def __str__(self):
8989 return "Unsupported transfer coding: %r" % self .hdr
9090
9191
92- class InvalidChunkSize (IOError ):
92+ class InvalidChunkSize (OSError ):
9393 def __init__ (self , data ):
9494 self .data = data
9595
9696 def __str__ (self ):
9797 return "Invalid chunk size: %r" % self .data
9898
9999
100- class ChunkMissingTerminator (IOError ):
100+ class ChunkMissingTerminator (OSError ):
101101 def __init__ (self , term ):
102102 self .term = term
103103
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def builtin(name):
1515@mock .patch (builtin ('open' ), new_callable = mock .mock_open )
1616def test_validate_no_file (_open ):
1717 pidfile = gunicorn .pidfile .Pidfile ('test.pid' )
18- _open .side_effect = IOError (errno .ENOENT )
18+ _open .side_effect = OSError (errno .ENOENT )
1919 assert pidfile .validate () is None
2020
2121
You can’t perform that action at this time.
0 commit comments