1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-09-16 09:26:30 +02:00

tests: fix errors for python3 in ptrack_helpers

This commit is contained in:
Andrew A. Bille
2020-11-02 14:07:12 +07:00
parent a5feea2435
commit c796ab2c42

View File

@@ -492,10 +492,10 @@ class ProbackupTest(object):
if os.path.getsize(file) == 0:
return ptrack_bits_for_fork
byte_size = os.path.getsize(file + '_ptrack')
npages = byte_size/8192
npages = int(byte_size/8192)
if byte_size % 8192 != 0:
print('Ptrack page is not 8k aligned')
sys.exit(1)
exit(1)
file = os.open(file + '_ptrack', os.O_RDONLY)