The following issues were found
tests/micropython/heapalloc_bytesio.py
4 issues
Line: 7
Column: 1
print("SKIP")
raise SystemExit
import micropython
data = b"1234" * 16
buf = uio.BytesIO(64)
micropython.heap_lock()
Reported by Pylint.
Line: 5
Column: 5
import uio
except ImportError:
print("SKIP")
raise SystemExit
import micropython
data = b"1234" * 16
buf = uio.BytesIO(64)
Reported by Pylint.
Line: 1
Column: 1
try:
import uio
except ImportError:
print("SKIP")
raise SystemExit
import micropython
data = b"1234" * 16
Reported by Pylint.
Line: 9
Column: 1
import micropython
data = b"1234" * 16
buf = uio.BytesIO(64)
micropython.heap_lock()
buf.write(data)
Reported by Pylint.
tests/micropython/heapalloc_bytesio2.py
4 issues
Line: 7
Column: 5
import uio
import micropython
micropython.mem_total
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
Reported by Pylint.
Line: 10
Column: 5
micropython.mem_total
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
data = b"1234" * 256
before = micropython.mem_total()
Reported by Pylint.
Line: 1
Column: 1
# Creating BytesIO from immutable object should not immediately
# copy its content.
try:
import uio
import micropython
micropython.mem_total
except (ImportError, AttributeError):
print("SKIP")
Reported by Pylint.
Line: 13
Column: 1
raise SystemExit
data = b"1234" * 256
before = micropython.mem_total()
buf = uio.BytesIO(data)
Reported by Pylint.
tests/micropython/heapalloc_fail_bytearray.py
4 issues
Line: 3
Column: 1
# test handling of failed heap allocation with bytearray
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
Reported by Pylint.
Line: 1
Column: 1
# test handling of failed heap allocation with bytearray
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
Reported by Pylint.
Line: 6
Column: 1
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
sl = GetSlice()[:]
Reported by Pylint.
Line: 6
Column: 1
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
sl = GetSlice()[:]
Reported by Pylint.
tests/micropython/heapalloc_fail_list.py
4 issues
Line: 3
Column: 1
# test handling of failed heap allocation with list
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
Reported by Pylint.
Line: 1
Column: 1
# test handling of failed heap allocation with list
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
Reported by Pylint.
Line: 6
Column: 1
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
sl = GetSlice()[:]
Reported by Pylint.
Line: 6
Column: 1
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
sl = GetSlice()[:]
Reported by Pylint.
tests/micropython/heapalloc_fail_memoryview.py
4 issues
Line: 3
Column: 1
# test handling of failed heap allocation with memoryview
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
Reported by Pylint.
Line: 1
Column: 1
# test handling of failed heap allocation with memoryview
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
Reported by Pylint.
Line: 6
Column: 1
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
sl = GetSlice()[:]
Reported by Pylint.
Line: 6
Column: 1
import micropython
class GetSlice:
def __getitem__(self, idx):
return idx
sl = GetSlice()[:]
Reported by Pylint.
tests/micropython/native_const_intbig.py
4 issues
Line: 4
Column: 2
# check loading constants
@micropython.native
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
Line: 1
Column: 1
# check loading constants
@micropython.native
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
Line: 5
Column: 1
@micropython.native
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
Line: 5
Column: 1
@micropython.native
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
tests/micropython/viper_const_intbig.py
4 issues
Line: 4
Column: 2
# check loading constants
@micropython.viper
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
Line: 1
Column: 1
# check loading constants
@micropython.viper
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
Line: 5
Column: 1
@micropython.viper
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
Line: 5
Column: 1
@micropython.viper
def f():
return 123456789012345678901234567890
print(f())
Reported by Pylint.
ports/mimxrt/boards/manifest.py
4 issues
Line: 1
Column: 1
freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
Reported by Pylint.
Line: 2
Column: 1
freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
Reported by Pylint.
Line: 3
Column: 1
freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
Reported by Pylint.
Line: 1
Column: 1
freeze("$(PORT_DIR)/modules")
freeze("$(MPY_DIR)/drivers/onewire")
include("$(MPY_DIR)/extmod/uasyncio/manifest.py")
Reported by Pylint.
ports/esp8266/boards/GENERIC_512K/_boot.py
4 issues
Line: 3
Column: 1
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
Reported by Pylint.
Line: 3
Column: 15
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
Reported by Pylint.
Line: 3
Column: 31
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
Reported by Pylint.
Line: 1
Column: 1
import gc
gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4)
Reported by Pylint.
ports/esp32/modules/apa106.py
4 issues
Line: 4
Column: 1
# APA106driver for MicroPython on ESP32
# MIT license; Copyright (c) 2016 Damien P. George
from neopixel import NeoPixel
class APA106(NeoPixel):
ORDER = (0, 1, 2, 3)
Reported by Pylint.
Line: 1
Column: 1
# APA106driver for MicroPython on ESP32
# MIT license; Copyright (c) 2016 Damien P. George
from neopixel import NeoPixel
class APA106(NeoPixel):
ORDER = (0, 1, 2, 3)
Reported by Pylint.
Line: 7
Column: 1
from neopixel import NeoPixel
class APA106(NeoPixel):
ORDER = (0, 1, 2, 3)
Reported by Pylint.
Line: 7
Column: 1
from neopixel import NeoPixel
class APA106(NeoPixel):
ORDER = (0, 1, 2, 3)
Reported by Pylint.