The following issues were found

tests/float/math_fun_intbig.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 7 Column: 5

                  import math
except ImportError:
    print("SKIP")
    raise SystemExit

for fun in (math.ceil, math.floor, math.trunc):
    for x in (-1e25, 1e25):
        print("%.3g" % fun(x))

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test the math functions that return ints, with very large results

try:
    import math
except ImportError:
    print("SKIP")
    raise SystemExit

for fun in (math.ceil, math.floor, math.trunc):

            

Reported by Pylint.

tests/micropython/heapalloc_int_from_bytes.py
2 issues
Unable to import 'micropython'
Error

Line: 3 Column: 1

              # Test that int.from_bytes() for small number of bytes generates
# small int.
import micropython

micropython.heap_lock()
print(int.from_bytes(b"1", "little"))
print(int.from_bytes(b"12", "little"))
print(int.from_bytes(b"2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "little"))
micropython.heap_unlock()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # Test that int.from_bytes() for small number of bytes generates
# small int.
import micropython

micropython.heap_lock()
print(int.from_bytes(b"1", "little"))
print(int.from_bytes(b"12", "little"))
print(int.from_bytes(b"2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "little"))
micropython.heap_unlock()

            

Reported by Pylint.

tests/basics/builtin_round_int.py
2 issues
Consider explicitly re-raising using the 'from' keyword
Error

Line: 8 Column: 5

                  round(1, -1)
except NotImplementedError:
    print('SKIP')
    raise SystemExit

tests = [
    (1, False), (1, True),
    (124, -1), (125, -1), (126, -1),
    (5, -1), (15, -1), (25, -1),

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test round() with integer values and second arg

# rounding integers is an optional feature so test for it
try:
    round(1, -1)
except NotImplementedError:
    print('SKIP')
    raise SystemExit


            

Reported by Pylint.

tests/basics/while_nest_exc.py
2 issues
No exception type(s) specified
Error

Line: 10 Column: 5

                      while 1:
            print(3)
            break
    except:
        print(4)
    print(5)
    break

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # test nested whiles within a try-except

while 1:
    print(1)
    try:
        print(2)
        while 1:
            print(3)
            break

            

Reported by Pylint.

tests/float/string_format.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              def test(fmt, *args):
    print("{:8s}".format(fmt) + ">" + fmt.format(*args) + "<")


test("{:10.4}", 123.456)
test("{:10.4e}", 123.456)
test("{:10.4e}", -123.456)
test("{:10.4f}", 123.456)
test("{:10.4f}", -123.456)

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 1 Column: 1

              def test(fmt, *args):
    print("{:8s}".format(fmt) + ">" + fmt.format(*args) + "<")


test("{:10.4}", 123.456)
test("{:10.4e}", 123.456)
test("{:10.4e}", -123.456)
test("{:10.4f}", 123.456)
test("{:10.4f}", -123.456)

            

Reported by Pylint.

ports/nrf/modules/manifest.py
2 issues
Undefined variable 'freeze'
Error

Line: 1 Column: 1

              freeze("$(PORT_DIR)/modules/scripts", "_mkfs.py")

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              freeze("$(PORT_DIR)/modules/scripts", "_mkfs.py")

            

Reported by Pylint.

tests/float/string_format_fp30.py
2 issues
Missing function or method docstring
Error

Line: 1 Column: 1

              def test(fmt, *args):
    print("{:8s}".format(fmt) + ">" + fmt.format(*args) + "<")


test("{:10.4}", 123.456)
test("{:10.4e}", 123.456)
test("{:10.4e}", -123.456)
# test("{:10.4f}", 123.456)
# test("{:10.4f}", -123.456)

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              def test(fmt, *args):
    print("{:8s}".format(fmt) + ">" + fmt.format(*args) + "<")


test("{:10.4}", 123.456)
test("{:10.4e}", 123.456)
test("{:10.4e}", -123.456)
# test("{:10.4f}", 123.456)
# test("{:10.4f}", -123.456)

            

Reported by Pylint.

tests/micropython/meminfo.py
2 issues
Unable to import 'micropython'
Error

Line: 3 Column: 1

              # tests meminfo functions in micropython module

import micropython

# these functions are not always available
if not hasattr(micropython, "mem_info"):
    print("SKIP")
else:
    micropython.mem_info()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # tests meminfo functions in micropython module

import micropython

# these functions are not always available
if not hasattr(micropython, "mem_info"):
    print("SKIP")
else:
    micropython.mem_info()

            

Reported by Pylint.

tests/micropython/memstats.py
2 issues
Unable to import 'micropython'
Error

Line: 3 Column: 1

              # tests meminfo functions in micropython module

import micropython

# these functions are not always available
if not hasattr(micropython, "mem_total"):
    print("SKIP")
else:
    t = micropython.mem_total()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # tests meminfo functions in micropython module

import micropython

# these functions are not always available
if not hasattr(micropython, "mem_total"):
    print("SKIP")
else:
    t = micropython.mem_total()

            

Reported by Pylint.

ports/nrf/freeze/test.py
2 issues
Missing module docstring
Error

Line: 1 Column: 1

              import sys


def hello():
    print("Hello %s!" % sys.platform)

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 4 Column: 1

              import sys


def hello():
    print("Hello %s!" % sys.platform)

            

Reported by Pylint.