8000 Add TODO for spec validation · RustPython/RustPython@0fbaaa4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fbaaa4

Browse files
committed
Add TODO for spec validation
1 parent 4f8a40e commit 0fbaaa4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/snippets/fstrings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from testutils import assert_raises
12
foo = 'bar'
23

34
assert f"{''}" == ''
@@ -19,6 +20,10 @@
1920
spec = "0>+#10x"
2021
assert f"{16:{spec}}{foo}" == '00000+0x10bar'
2122

23+
# TODO:
24+
# spec = "bla"
25+
# assert_raises(ValueError, lambda: f"{16:{spec}}")
26+
2227
# Normally `!` cannot appear outside of delimiters in the expression but
2328
# cpython makes an exception for `!=`, so we should too.
2429

0 commit comments

Comments
 (0)
0