The following issues were found
tests/basics/io_bytesio_cow.py
2 issues
Line: 1
Column: 1
# Make sure that write operations on io.BytesIO don't
# change original object it was constructed from.
try:
import uio as io
except ImportError:
import io
b = b"foobar"
Reported by Pylint.
Line: 8
Column: 1
except ImportError:
import io
b = b"foobar"
a = io.BytesIO(b)
a.write(b"1")
print(b)
print(a.getvalue())
Reported by Pylint.
tests/import/import_pkg4.py
2 issues
Line: 2
Column: 1
# Testing that "recursive" imports (pkg2/__init__.py imports from pkg2) work
import pkg2
Reported by Pylint.
Line: 1
Column: 1
# Testing that "recursive" imports (pkg2/__init__.py imports from pkg2) work
import pkg2
Reported by Pylint.
tests/extmod/ujson_dumps_extra.py
2 issues
Line: 7
Column: 5
import ujson
except ImportError:
print("SKIP")
raise SystemExit
print(ujson.dumps(b"1234"))
Reported by Pylint.
Line: 1
Column: 1
# test uPy ujson behaviour that's not valid in CPy
try:
import ujson
except ImportError:
print("SKIP")
raise SystemExit
print(ujson.dumps(b"1234"))
Reported by Pylint.
tests/import/import_pkg6.py
2 issues
Line: 2
Column: 1
# This tests relative imports as used in pkg6
import pkg6
Reported by Pylint.
Line: 1
Column: 1
# This tests relative imports as used in pkg6
import pkg6
Reported by Pylint.
tests/import/import_pkg7.py
2 issues
Line: 2
Column: 1
# This tests ... relative imports as used in pkg7 and imports beyond package root
import pkg7.subpkg1.subpkg2.mod3
Reported by Pylint.
Line: 1
Column: 1
# This tests ... relative imports as used in pkg7 and imports beyond package root
import pkg7.subpkg1.subpkg2.mod3
Reported by Pylint.
tests/import/import_pkg8.py
2 issues
Line: 2
Column: 1
# import with no __init__.py files
import pkg8.mod
Reported by Pylint.
Line: 1
Column: 1
# import with no __init__.py files
import pkg8.mod
Reported by Pylint.
tests/basics/int_constfolding.py
2 issues
Line: 9
Column: 7
# negation
print(-1)
print(-(-1))
# 1's complement
print(~0)
print(~1)
print(~-1)
Reported by Pylint.
Line: 1
Column: 1
# tests int constant folding in compiler
# positive
print(+1)
print(+100)
# negation
print(-1)
print(-(-1))
Reported by Pylint.
tests/import/pkg2/mod1.py
2 issues
Line: 1
Column: 1
from pkg2 import mod2
Reported by Pylint.
Line: 1
Column: 1
from pkg2 import mod2
Reported by Pylint.
ports/unix/variants/coverage/frzmpy/frzmpy_pkg1/__init__.py
2 issues
Line: 1
Column: 1
# test frozen package with __init__.py
print('frzmpy_pkg1.__init__')
x = 1
Reported by Pylint.
Line: 3
Column: 1
# test frozen package with __init__.py
print('frzmpy_pkg1.__init__')
x = 1
Reported by Pylint.
tests/basics/int_big_mul.py
2 issues
Line: 1
Column: 1
# tests transition from small to large int representation by multiplication
for rhs in range(2, 11):
lhs = 1
for k in range(100):
res = lhs * rhs
print(lhs, '*', rhs, '=', res)
lhs = res
# below tests pos/neg combinations that overflow small int
Reported by Pylint.
Line: 3
Column: 5
# tests transition from small to large int representation by multiplication
for rhs in range(2, 11):
lhs = 1
for k in range(100):
res = lhs * rhs
print(lhs, '*', rhs, '=', res)
lhs = res
# below tests pos/neg combinations that overflow small int
Reported by Pylint.