1# test round() with integer values and second arg 2 3# rounding integers is an optional feature so test for it 4try: 5 round(1, -1) 6except NotImplementedError: 7 print('SKIP') 8 raise SystemExit 9 10tests = [ 11 (1, False), (1, True), 12 (124, -1), (125, -1), (126, -1), 13 (5, -1), (15, -1), (25, -1), 14 (12345, 0), (12345, -1), (12345, 1), 15 (-1234, 0), (-1234, -1), (-1234, 1), 16] 17for t in tests: 18 print(round(*t)) 19