The following issues were found
tests/unicode/unicode_iter.py
1 issues
Line: 1
Column: 1
for c in "Hello":
print(c)
for c in "Привет":
print(c)
Reported by Pylint.
tools/mpremote/mpremote.py
1 issues
Line: 1
Column: 1
#!/usr/bin/env python3
import sys
from mpremote import main
sys.exit(main.main())
Reported by Pylint.
tests/unicode/unicode_ord.py
1 issues
Line: 1
Column: 1
# test builtin ord with unicode characters
print(ord("α"))
Reported by Pylint.
tests/unicode/unicode_pos.py
1 issues
Line: 1
Column: 1
# str methods with explicit start/end pos
print("Привет".startswith("П"))
print("Привет".startswith("р", 1))
print("абвба".find("а", 1))
print("абвба".find("а", 1, -1))
Reported by Pylint.
tests/basics/tuple_slice.py
1 issues
Line: 1
Column: 1
# tuple slicing
x = (1, 2, 3 * 4)
print(x[1:])
print(x[:-1])
print(x[2:3])
Reported by Pylint.
tests/basics/tuple_mult.py
1 issues
Line: 1
Column: 1
# basic multiplication
print((0,) * 5)
# check negative, 0, positive; lhs and rhs multiplication
for i in (-4, -2, 0, 2, 4):
print(i * (1, 2))
print((1, 2) * i)
# check that we don't modify existing tuple
Reported by Pylint.
tests/unicode/unicode_str_format.py
1 issues
Line: 1
Column: 1
# test handling of unicode chars in format strings
print("α".format())
print("{α}".format(α=1))
Reported by Pylint.
tests/basics/tuple_index.py
1 issues
Line: 1
Column: 1
a = (1, 2, 3)
print(a.index(1))
print(a.index(2))
print(a.index(3))
print(a.index(3, 2))
try:
print(a.index(3, 2, 2))
except ValueError:
print("Raised ValueError")
Reported by Pylint.
tests/unicode/unicode_str_modulo.py
1 issues
Line: 1
Column: 1
# test handling of unicode chars in string % formatting
print("α" % ())
Reported by Pylint.
tests/basics/tuple_count.py
1 issues
Line: 1
Column: 1
a = (1, 2, 3)
a = a + a + a
b = (0, 0, a, 0, a, 0)
print(a.count(2))
print(b.count(a))
Reported by Pylint.