8000 gh-125522: Fix bare except in test_zlib.test_flushes · simple-is-great/cpython@8bbd858 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bbd858

Browse files
pythongh-125522: Fix bare except in test_zlib.test_flushes
1 parent f0c6fcc commit 8bbd858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_zlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def test_flushes(self):
511511
b = obj.flush( sync )
512512
c = obj.compress( data[3000:] )
513513
d = obj.flush()
514-
except:
514+
except zlib.error:
515515
print("Error for flush mode={}, level={}"
516516
.format(sync, level))
517517
raise

0 commit comments

Comments
 (0)
0