postgrespro / pg_probackup

Backup and recovery manager for PostgreSQL
https://postgrespro.github.io/pg_probackup/
Other
704 stars 86 forks source link

[PBCKP-360] fix exception check in test_validate_corrupt_page_header_map #577

Closed funny-falcon closed 1 year ago

funny-falcon commented 1 year ago

zlib decompression could mark error either as "data error" or "buffer error". One of check did consider it, other didn't.

Make them same.

And use assertRaises for good (requires python 3.2 at least)