Skip to content

Commit 95535a8

Browse files
authored
Merge pull request #8144 from jepler/test-empty-settings.toml
Test empty settings.toml
2 parents 69e6b62 + e8c7b4a commit 95535a8

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ValueError
2+
IndexError
3+
ValueError
4+
ValueError
5+
ValueError
6+
ValueError
7+
ValueError
8+
ValueError
9+
IndexError
10+
KeyError
11+
ValueError
12+
IndexError
13+
ValueError
14+
ValueError
15+
ValueError
16+
ValueError
17+
ValueError

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)