The following issues were found
tests/basics/bytes_format_modulo.py
2 issues
Line: 7
Column: 5
b'' % ()
except TypeError:
print("SKIP")
raise SystemExit
print(b"%%" % ())
print(b"=%d=" % 1)
print(b"=%d=%d=" % (1, 2))
Reported by Pylint.
Line: 1
Column: 1
# This test requires CPython3.5
try:
b'' % ()
except TypeError:
print("SKIP")
raise SystemExit
print(b"%%" % ())
Reported by Pylint.
tests/stress/recursive_data.py
2 issues
Line: 6
Column: 5
import uio as io
except ImportError:
print("SKIP")
raise SystemExit
l = [1, 2, 3, None]
l[-1] = l
try:
print(l, file=io.StringIO())
Reported by Pylint.
Line: 1
Column: 1
# This tests that printing recursive data structure doesn't lead to segfault.
try:
import uio as io
except ImportError:
print("SKIP")
raise SystemExit
l = [1, 2, 3, None]
l[-1] = l
Reported by Pylint.
tests/basics/builtin_range_attrs.py
2 issues
Line: 7
Column: 5
range(0).start
except AttributeError:
print("SKIP")
raise SystemExit
# attrs
print(range(1, 2, 3).start)
print(range(1, 2, 3).stop)
print(range(1, 2, 3).step)
Reported by Pylint.
Line: 1
Column: 1
# test attributes of builtin range type
try:
range(0).start
except AttributeError:
print("SKIP")
raise SystemExit
# attrs
Reported by Pylint.
tests/extmod/uctypes_sizeof_layout.py
2 issues
Line: 5
Column: 5
import uctypes
except ImportError:
print("SKIP")
raise SystemExit
desc = {
"f1": 0 | uctypes.UINT32,
"f2": 4 | uctypes.UINT8,
}
Reported by Pylint.
Line: 1
Column: 1
try:
import uctypes
except ImportError:
print("SKIP")
raise SystemExit
desc = {
"f1": 0 | uctypes.UINT32,
"f2": 4 | uctypes.UINT8,
Reported by Pylint.
tests/basics/array_construct2.py
2 issues
Line: 8
Column: 9
from array import array
except ImportError:
print("SKIP")
raise SystemExit
# construct from something with unknown length (requires generators)
print(array('i', (i for i in range(10))))
Reported by Pylint.
Line: 1
Column: 1
try:
from uarray import array
except ImportError:
try:
from array import array
except ImportError:
print("SKIP")
raise SystemExit
Reported by Pylint.
tests/unicode/unicode_slice.py
2 issues
Line: 1
Column: 1
# Test slicing of Unicode strings
s = "Привет"
print(s[:])
print(s[2:])
print(s[:5])
print(s[2:5])
print(s[2:5:1])
Reported by Pylint.
Line: 3
Column: 1
# Test slicing of Unicode strings
s = "Привет"
print(s[:])
print(s[2:])
print(s[:5])
print(s[2:5])
print(s[2:5:1])
Reported by Pylint.
tests/feature_check/slice.py
2 issues
Line: 2
Column: 5
try:
slice
print("slice")
except NameError:
print("no")
Reported by Pylint.
Line: 1
Column: 1
try:
slice
print("slice")
except NameError:
print("no")
Reported by Pylint.
tests/feature_check/uio_module.py
2 issues
Line: 2
Column: 5
try:
import uio
print("uio")
except ImportError:
print("no")
Reported by Pylint.
Line: 1
Column: 1
try:
import uio
print("uio")
except ImportError:
print("no")
Reported by Pylint.
tests/float/array_construct.py
2 issues
Line: 10
Column: 9
from array import array
except ImportError:
print("SKIP")
raise SystemExit
print(array("f", array("h", [1, 2])))
print(array("d", array("f", [1, 2])))
Reported by Pylint.
Line: 1
Column: 1
# test construction of array from array with float type
try:
from uarray import array
except ImportError:
try:
from array import array
except ImportError:
print("SKIP")
Reported by Pylint.
examples/hwapi/hwconfig_z_frdm_k64f.py
2 issues
Line: 1
Column: 1
from machine import Pin, Signal
# Freescale/NXP FRDM-K64F board
# Blue LED on port B, pin 21
LED = Signal(("GPIO_1", 21), Pin.OUT)
Reported by Pylint.
Line: 1
Column: 1
from machine import Pin, Signal
# Freescale/NXP FRDM-K64F board
# Blue LED on port B, pin 21
LED = Signal(("GPIO_1", 21), Pin.OUT)
Reported by Pylint.