From 0297df209bc712df2c877e9029559bd2630ce52f Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 04 2020 11:55:55 +0000 Subject: Apply patch 0025-tests-Use-modern-style-division-in-runner-script.patch patch_name: 0025-tests-Use-modern-style-division-in-runner-script.patch present_in_specfile: true --- diff --git a/tests/run_tests.py b/tests/run_tests.py index 79e0385..2847417 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -1,6 +1,7 @@ #! /usr/bin/python2 from __future__ import print_function +from __future__ import division import subprocess import types @@ -723,7 +724,7 @@ def stress_tests(): # This is to catch off-by-ones or races in the kernel allocated that # can make allocating all hugepages a problem if nr_pages > 1: - do_shm_test(("shm-fork", repr(threads), repr(nr_pages / 2)), limit) + do_shm_test(("shm-fork", repr(threads), repr(nr_pages // 2)), limit) do_shm_test(("shm-fork", repr(threads), repr(nr_pages)), limit) do_shm_test(("shm-getraw", repr(nr_pages), "/dev/full"), limit)