The following issues were found
tests/basics/string_istest.py
1 issues
Line: 1
Column: 1
print("".isspace())
print(" \t\n\r\v\f".isspace())
print("a".isspace())
print(" \t\n\r\v\fa".isspace())
print("".isalpha())
print("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".isalpha())
print("0abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".isalpha())
print("this ".isalpha())
print("".isdigit())
Reported by Pylint.
tests/float/python36.py
1 issues
Line: 1
Column: 1
# tests for things that only Python 3.6 supports, needing floats
# underscores in numeric literals
print(1_000.1_8)
print("%.2g" % 1e1_2)
# underscore supported by int/float constructors
print(float("1_2_3"))
print(float("1_2_3.4"))
Reported by Pylint.
tests/basics/string_index.py
1 issues
Line: 1
Column: 1
print("hello world".index("ll"))
print("hello world".index("ll", None))
print("hello world".index("ll", 1))
print("hello world".index("ll", 1, None))
print("hello world".index("ll", None, None))
print("hello world".index("ll", 1, -1))
try:
print("hello world".index("ll", 1, 1))
Reported by Pylint.
tests/basics/bytes_construct_bytearray.py
1 issues
Line: 1
Column: 1
# test construction of bytes from bytearray
print(bytes(bytearray(4)))
Reported by Pylint.
tests/float/string_format_modulo3.py
1 issues
Line: 1
Column: 1
# uPy and CPython outputs differ for the following
print("%.1g" % -9.9) # round up 'g' with '-' sign
print("%.2g" % 99.9) # round up
Reported by Pylint.
tests/float/true_value.py
1 issues
Line: 1
Column: 1
# Test true-ish value handling
if not 0.0:
print("float 0")
if not 0 + 0j:
print("complex 0")
Reported by Pylint.
tests/import/builtin_import.py
1 issues
Line: 1
Column: 1
# test calling builtin import function
# basic test
__import__("builtins")
# first arg should be a string
try:
__import__(1)
except TypeError:
Reported by Pylint.
tests/import/import1a.py
1 issues
Line: 1
Column: 1
import import1b
print(import1b.var)
Reported by Pylint.
tests/import/import_file.py
1 issues
Line: 1
Column: 1
import import1b
print(import1b.__file__)
Reported by Pylint.
tests/import/import_long_dyn2.py
1 issues
Line: 1
Column: 1
globals()["long_long_very_long_long_name"] = 1
Reported by Pylint.