circuitpython/ports/unix/variants
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
..
coverage Refactor dotenv module so that it can be tested on host 2022-10-04 09:51:27 -05:00
dev Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
fast Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
freedos Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
minimal Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
nanbox unix: Rename unix binaries to micropython-variant (not _variant). 2020-01-12 10:37:40 +11:00
standard unix/variants: Enable help and help("modules") on standard and dev. 2021-07-13 16:18:15 +10:00
manifest.py Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00