The following issues were found
tests/basics/string_find.py
1 issues
Line: 1
Column: 1
print("hello world".find("ll"))
print("hello world".find("ll", None))
print("hello world".find("ll", 1))
print("hello world".find("ll", 1, None))
print("hello world".find("ll", None, None))
print("hello world".find("ll", 1, -1))
print("hello world".find("ll", 1, 1))
print("hello world".find("ll", 1, 2))
print("hello world".find("ll", 1, 3))
Reported by Pylint.
tests/import/import_pkg2.py
1 issues
Line: 1
Column: 1
from pkg.mod import foo
try:
pkg
except NameError:
print("NameError")
try:
pkg.mod
except NameError:
Reported by Pylint.
tests/import/import_pkg5.py
1 issues
Line: 1
Column: 1
# This tests relative imports as used in pkg3
import pkg3
import pkg3.mod1
import pkg3.subpkg1.mod1
pkg3.subpkg1.mod1.foo()
Reported by Pylint.
tests/basics/string_endswith_upy.py
1 issues
Line: 1
Column: 1
# MicroPython doesn't support tuple argument
try:
"foobar".endswith(("bar", "sth"))
except TypeError:
print("TypeError")
Reported by Pylint.
tests/import/pkg2/__init__.py
1 issues
Line: 1
Column: 1
from pkg2 import mod1
Reported by Pylint.
tests/import/pkg2/mod2.py
1 issues
Line: 1
Column: 1
print("in mod2")
Reported by Pylint.
tests/import/pkg3/__init__.py
1 issues
Line: 1
Column: 1
print("pkg __name__:", __name__)
Reported by Pylint.
tests/basics/bytes_construct.py
1 issues
Line: 1
Column: 1
# test construction of bytes from different objects
# tuple, list
print(bytes((1, 2)))
print(bytes([1, 2]))
# constructor value out of range
try:
bytes([-1])
Reported by Pylint.
tests/import/pkg3/subpkg1/__init__.py
1 issues
Line: 1
Column: 1
print("subpkg1 __name__:", __name__)
Reported by Pylint.
tests/import/pkg6/x/y.py
1 issues
Line: 1
Column: 1
print("y")
Reported by Pylint.