Skip to content

Commit e8c7b4a

Browse files
committed
test a zero-byte environment file
1 parent bfcb967 commit e8c7b4a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/circuitpython/getenv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def run_test(key, content):
7272
print(key, str(e))
7373

7474

75+
run_test("key", b"")
76+
7577
for i in range(13):
7678
run_test(f"key{i}", content_good)
7779

tests/circuitpython/getenv.py.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
key None
12
key0 'hello world'
23
key1 7
34
key2 '\n'

0 commit comments

Comments
 (0)