circuitpython/ports/unix
Jeff Epler 52bca95208
Refactor dotenv module so that it can be tested on host
.. 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
```
2022-10-04 09:51:27 -05:00
..
variants Refactor dotenv module so that it can be tested on host 2022-10-04 09:51:27 -05:00
.gitignore remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
alloc.c codeformat 2021-04-19 22:22:44 -07:00
coverage.c ringbuf cleanup 2022-09-21 10:03:05 -04:00
coveragecpp.cpp esp32,unix: Support building C++ code. 2020-10-29 15:29:50 +11:00
displayio_min.c Add displayio bitmaps to unix build 2021-11-12 10:47:17 -06:00
fatfs_port.c unix/fatfs_port: Fix month offset in timestamp calculation. 2020-09-02 00:19:06 +10:00
gccollect.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
input.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
input.h ports: Make new ports/ sub-directory and move all ports there. 2017-09-06 13:40:51 +10:00
main.c Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
Makefile no Russian font for SAMD21; adjust unix build warnings 2022-07-19 14:07:18 -04:00
modffi.c Conditionalize LTO 2022-05-27 12:59:54 -07:00
modjni.c py: Introduce and use mp_raise_type_arg helper. 2021-07-15 00:12:41 +10:00
modmachine.c Conditionalize LTO 2022-05-27 12:59:54 -07:00
modos.c Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
modtermios.c Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
modtime.c Merge MicroPython 1.14 into CircuitPython 2021-05-11 15:07:40 -07:00
moduos_vfs.c Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
moduselect.c Rename EXTENDED_FIELDS -> MP_TYPE_EXTENDED_FIELDS 2021-07-12 06:57:59 -05:00
mpbthciport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpbtstackport_common.c unix/mpbtstackport_common: Implement mp_bluetooth_hci_active. 2021-02-12 12:07:05 +11:00
mpbtstackport_h4.c unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpbtstackport_usb.c extmod/modbluetooth: Refactor stack/hci/driver/port bindings. 2020-09-08 11:41:31 +10:00
mpbtstackport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpconfigport.h Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
mpconfigport.mk Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
mphalport.h Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
mpnimbleport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpnimbleport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpthreadport.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
mpthreadport.h Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
qstrdefsport.h Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
unix_mphal.c Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00