52bca95208
.. it needs to operate on a FILE* rather than FIL depending on the build. Note that this is comparing output to expected, not to cpython dotenv package. Because run-tests.py starts the CPython interpreter with the '-S' (skip site initialization) flag, pip-installed packages are not available for import inside a test file. Instead, the exp file is generated manually: ``` circuitpython/tests$ python3 circuitpython/dotenv_test.py > circuitpython/dotenv_test.py.exp ``` Unfortunately, the test fails on test e15: ```diff FAILURE /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py --- /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.exp 2022-10-04 09:48:16.307703128 -0500 +++ /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.out 2022-10-04 09:48:16.307703128 -0500 @@ -14,7 +14,7 @@ line e13 e13value e14 None -e15 e15value +e15 None e16 # e17 def e18 #has a hash ```
184 lines
2.5 KiB
Plaintext
184 lines
2.5 KiB
Plaintext
# mp_printf
|
|
-123 +123 123
|
|
-0123
|
|
123
|
|
123
|
|
1ABCDEF
|
|
ab abc ' abc' ' True' 'Tru'
|
|
|
|
false true
|
|
(null)
|
|
-2147483648
|
|
2147483648
|
|
80000000
|
|
80000000
|
|
abc
|
|
%
|
|
# GC
|
|
0x0
|
|
0x0
|
|
# vstr
|
|
tests
|
|
sts
|
|
|
|
test
|
|
tes
|
|
RuntimeError:
|
|
RuntimeError:
|
|
# repl
|
|
ame__
|
|
mport
|
|
|
|
builtins micropython _asyncio _thread
|
|
_uasyncio aesio array binascii
|
|
bitmaptools btree cexample cmath
|
|
collections cppexample displayio dotenv
|
|
errno ffi framebuf gc
|
|
gifio hashlib json math
|
|
qrio rainbowio re sys
|
|
termios traceback ubinascii uctypes
|
|
uerrno uheapq uio ujson
|
|
ulab ulab.numpy ulab.numpy.fft
|
|
ulab.numpy.linalg ulab.scipy
|
|
ulab.scipy.linalg ulab.scipy.optimize
|
|
ulab.scipy.signal ulab.scipy.special
|
|
ulab.utils uos urandom ure
|
|
uselect ustruct utime utimeq
|
|
uzlib zlib
|
|
ime
|
|
|
|
utime utimeq
|
|
|
|
argv atexit byteorder exc_info
|
|
exit getsizeof implementation maxsize
|
|
modules path platform stderr
|
|
stdin stdout version version_info
|
|
ementation
|
|
# attrtuple
|
|
(start=1, stop=2, step=3)
|
|
# str
|
|
1
|
|
# bytearray
|
|
data
|
|
# mpz
|
|
1
|
|
12345678
|
|
0
|
|
0
|
|
0
|
|
0
|
|
0
|
|
1
|
|
12345
|
|
6
|
|
# runtime utils
|
|
TypeError: unsupported type for __abs__: 'str'
|
|
TypeError: unsupported types for __divmod__: 'str', 'str'
|
|
1
|
|
2
|
|
OverflowError: overflow converting long int to machine word
|
|
OverflowError: overflow converting long int to machine word
|
|
ValueError:
|
|
Warning: test
|
|
# format float
|
|
?
|
|
+1e+00
|
|
+1e+00
|
|
# binary
|
|
123
|
|
456
|
|
# VM
|
|
2 1
|
|
# scheduler
|
|
sched(0)=1
|
|
sched(1)=1
|
|
sched(2)=1
|
|
sched(3)=1
|
|
sched(4)=0
|
|
unlocked
|
|
0
|
|
1
|
|
2
|
|
3
|
|
KeyboardInterrupt:
|
|
KeyboardInterrupt:
|
|
10
|
|
# ringbuf
|
|
99 0
|
|
98 1
|
|
22
|
|
99 0
|
|
97 2
|
|
aa55
|
|
99 0
|
|
0 99
|
|
-1
|
|
1 98
|
|
-1
|
|
2 97
|
|
0
|
|
cc99
|
|
99 0
|
|
0
|
|
11bb
|
|
0
|
|
22ff
|
|
-1
|
|
-1
|
|
# pairheap
|
|
create: 0 0 0 0
|
|
pop all: 0 1 2 3
|
|
create: 7 6 5 4 3 2 1 0
|
|
pop all: 0 1 2 3 4 5 6 7
|
|
create: 1 - - 1 1 1 1 1 1
|
|
pop all: 1 2
|
|
create: 1 1 1 1 2 2
|
|
pop all: 2 4
|
|
create: 1 1 1 1 1
|
|
pop all: 1 3 4
|
|
create: 3 3 3 1 1 1
|
|
pop all: 1 2 4 5
|
|
# mp_obj_is_type
|
|
1 1
|
|
0 0
|
|
1 1
|
|
1 1
|
|
0 0
|
|
1 1
|
|
# end coverage.c
|
|
0123456789 b'0123456789'
|
|
7300
|
|
7300
|
|
7300
|
|
7300
|
|
None
|
|
None
|
|
None
|
|
None
|
|
None
|
|
None
|
|
b'123'
|
|
b'123'
|
|
b'123'
|
|
OSError
|
|
0
|
|
None
|
|
None
|
|
cpp None
|
|
5
|
|
(3, 'hellocpp')
|
|
frzstr1
|
|
frzstr1.py
|
|
frzmpy1
|
|
frzmpy1.py
|
|
frzstr_pkg1.__init__
|
|
frzstr_pkg1/__init__.py 1
|
|
frzmpy_pkg1.__init__
|
|
frzmpy_pkg1/__init__.py 1
|
|
frzstr_pkg2.mod
|
|
1
|
|
frzmpy_pkg2.mod
|
|
1
|
|
ZeroDivisionError
|
|
NULL
|