The following issues were found
tests/basics/int_big_xor2.py
3 issues
Line: 1
Column: 11
# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
^ 23716683549865351578586448630079789776107310103486834795830390982)
print( 53817081128841898634258263553430908085326601592682411889506742059
^ 37042558948907407488299113387826240429667200950043601129661240876)
print( 26167512042587370698808974207700979337713004510730289760097826496
Reported by Pylint.
Line: 1
Column: 1
# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
^ 23716683549865351578586448630079789776107310103486834795830390982)
print( 53817081128841898634258263553430908085326601592682411889506742059
^ 37042558948907407488299113387826240429667200950043601129661240876)
print( 26167512042587370698808974207700979337713004510730289760097826496
Reported by Pylint.
Line: 27
Column: 11
print( 40019818573920230246248826511203818792007462193311949166285967147
^ 9487909752)
# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
^ -23716683549865351578586448630079789776107310103486834795830390982)
print( -53817081128841898634258263553430908085326601592682411889506742059
Reported by Pylint.
tests/extmod/ure_group.py
3 issues
Line: 10
Column: 9
import re
except ImportError:
print("SKIP")
raise SystemExit
def print_groups(match):
print("----")
try:
Reported by Pylint.
Line: 1
Column: 1
# test groups, and nested groups
try:
import ure as re
except ImportError:
try:
import re
except ImportError:
print("SKIP")
Reported by Pylint.
Line: 13
Column: 1
raise SystemExit
def print_groups(match):
print("----")
try:
i = 0
while True:
print(match.group(i))
Reported by Pylint.
tests/import/pkg/mod.py
3 issues
Line: 1
Column: 1
def foo():
return 42
Reported by Pylint.
Line: 1
Column: 1
def foo():
return 42
Reported by Pylint.
Line: 1
Column: 1
def foo():
return 42
Reported by Pylint.
tests/jni/list.py
3 issues
Line: 1
Column: 1
import jni
try:
ArrayList = jni.cls("java/util/ArrayList")
except:
print("SKIP")
raise SystemExit
l = ArrayList()
Reported by Pylint.
Line: 7
Column: 5
ArrayList = jni.cls("java/util/ArrayList")
except:
print("SKIP")
raise SystemExit
l = ArrayList()
print(l)
l.add("one")
l.add("two")
Reported by Pylint.
Line: 1
Column: 1
import jni
try:
ArrayList = jni.cls("java/util/ArrayList")
except:
print("SKIP")
raise SystemExit
l = ArrayList()
Reported by Pylint.
tests/jni/object.py
3 issues
Line: 1
Column: 1
import jni
try:
Integer = jni.cls("java/lang/Integer")
except:
print("SKIP")
raise SystemExit
# Create object
Reported by Pylint.
Line: 7
Column: 5
Integer = jni.cls("java/lang/Integer")
except:
print("SKIP")
raise SystemExit
# Create object
i = Integer(42)
print(i)
# Call object method
Reported by Pylint.
Line: 1
Column: 1
import jni
try:
Integer = jni.cls("java/lang/Integer")
except:
print("SKIP")
raise SystemExit
# Create object
Reported by Pylint.
tests/jni/system_out.py
3 issues
Line: 2
Column: 5
try:
import jni
System = jni.cls("java/lang/System")
except:
print("SKIP")
raise SystemExit
System.out.println("Hello, Java!")
Reported by Pylint.
Line: 7
Column: 5
System = jni.cls("java/lang/System")
except:
print("SKIP")
raise SystemExit
System.out.println("Hello, Java!")
Reported by Pylint.
Line: 1
Column: 1
try:
import jni
System = jni.cls("java/lang/System")
except:
print("SKIP")
raise SystemExit
System.out.println("Hello, Java!")
Reported by Pylint.
tests/feature_check/async_check.py
3 issues
Line: 1
Column: 1
# check if async/await keywords are supported
async def foo():
await 1
print("async")
Reported by Pylint.
Line: 2
Column: 1
# check if async/await keywords are supported
async def foo():
await 1
print("async")
Reported by Pylint.
Line: 2
Column: 1
# check if async/await keywords are supported
async def foo():
await 1
print("async")
Reported by Pylint.
tests/extmod/uhashlib_md5.py
3 issues
Line: 10
Column: 9
# This is neither uPy, nor cPy, so must be uPy with
# uhashlib module disabled.
print("SKIP")
raise SystemExit
try:
hashlib.md5
except AttributeError:
# MD5 is only available on some ports
Reported by Pylint.
Line: 17
Column: 5
except AttributeError:
# MD5 is only available on some ports
print("SKIP")
raise SystemExit
md5 = hashlib.md5(b"hello")
md5.update(b"world")
print(md5.digest())
Reported by Pylint.
Line: 1
Column: 1
try:
import uhashlib as hashlib
except ImportError:
try:
import hashlib
except ImportError:
# This is neither uPy, nor cPy, so must be uPy with
# uhashlib module disabled.
print("SKIP")
Reported by Pylint.
tests/basics/memoryview_slice_assign.py
3 issues
Line: 7
Column: 5
memoryview(bytearray(1))[:] = memoryview(bytearray(1))
except (NameError, TypeError):
print("SKIP")
raise SystemExit
try:
import uarray as array
except ImportError:
try:
Reported by Pylint.
Line: 16
Column: 9
import array
except ImportError:
print("SKIP")
raise SystemExit
# test slice assignment between memoryviews
b1 = bytearray(b'1234')
b2 = bytearray(b'5678')
b3 = bytearray(b'5678')
Reported by Pylint.
Line: 1
Column: 1
# test slice assignment to memoryview
try:
memoryview(bytearray(1))[:] = memoryview(bytearray(1))
except (NameError, TypeError):
print("SKIP")
raise SystemExit
try:
Reported by Pylint.
ports/unix/variants/coverage/frzmpy/frzmpy_pkg2/mod.py
3 issues
Line: 1
Column: 1
# test frozen package without __init__.py
print('frzmpy_pkg2.mod')
class Foo:
x = 1
Reported by Pylint.
Line: 3
Column: 1
# test frozen package without __init__.py
print('frzmpy_pkg2.mod')
class Foo:
x = 1
Reported by Pylint.
Line: 3
Column: 1
# test frozen package without __init__.py
print('frzmpy_pkg2.mod')
class Foo:
x = 1
Reported by Pylint.