summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2020-04-14 11:24:59 -0400
committerJohn Kacur <jkacur@redhat.com>2020-04-14 11:27:32 -0400
commitbc39214270bf80ecbe9ce3ec9e200b89df702ce8 (patch)
treed7aab50d01d2c92ef7b2eecc81f0bd559b171fc2
parentd170839360edf3fbac4a31c7771c4ec5bb0b6121 (diff)
downloadpython-linux-procfs-bc39214270bf80ecbe9ce3ec9e200b89df702ce8.tar.gz
python-linux-procfs: bitmasklist_test.py: python3 changes
Only python3 is supported now Changes to python3 - Specify python3 on the shebang - Get rid of future - Apply optional ws_comma from 2to3 Signed-off-by: John Kacur <jkacur@redhat.com>
-rwxr-xr-xbitmasklist_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitmasklist_test.py b/bitmasklist_test.py
index 60a8da3..4519946 100755
--- a/bitmasklist_test.py
+++ b/bitmasklist_test.py
@@ -1,5 +1,5 @@
-#!/usr/bin/python
-from __future__ import print_function
+#!/usr/bin/python3
+
from procfs import bitmasklist
class bitmasklist_test:
@@ -52,17 +52,17 @@ t.bitmasklist_test()
# CPU 0, 32
t = \
- bitmasklist_test("00000000,00000000,00000000,00000000,00000001,00000001", 44, [0,32])
+ bitmasklist_test("00000000,00000000,00000000,00000000,00000001,00000001", 44, [0, 32])
t.bitmasklist_test()
# cpu 0-15
t = \
- bitmasklist_test("ffff", 44, [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])
+ bitmasklist_test("ffff", 44, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])
t.bitmasklist_test()
#cpu 0-71
t = \
- bitmasklist_test("ff,ffffffff,ffffffff", 96, [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71])
+ bitmasklist_test("ff,ffffffff,ffffffff", 96, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71])
t.bitmasklist_test()
exit(bitmasklist_test.unit_test_result)