Skip to content

Commit a535e3c

Browse files
committed
merged
2 parents 71ec5c1 + cba961e commit a535e3c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

parser/src/fstring.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ mod tests {
384384
#[test]
385385
fn test_parse_invalid_fstring() {
386386
assert_eq!(parse_fstring("{5!a"), Err(ExpectedRbrace));
387-
388387
assert_eq!(parse_fstring("{5!a1}"), Err(ExpectedRbrace));
389388
assert_eq!(parse_fstring("{5!"), Err(ExpectedRbrace));
390389
assert_eq!(parse_fstring("abc{!a 'cat'}"), Err(EmptyExpression));

tests/snippets/fstrings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import sys
55
import platform
66
if platform.python_implementation() == 'CPython':
7-
assert sys.version_info.major == 3, 'Incompatible Python Version, expected CPython 3.8 or later'
8-
assert sys.version_info.minor == 8, 'Incompatible Python Version, expected CPython 3.8 or later'
7+
assert sys.version_info >= (3, 8), 'Incompatible Python Version, expected CPython 3.8 or later'
98
elif platform.python_implementation == 'RustPython':
109
# ok
1110
pass
@@ -169,4 +168,4 @@ def assertEqual(self, a,b):
169168

170169
# self.assertEqual(f'X{x =}Y', 'Xx ='+x+'Y')
171170
# self.assertEqual(f'X{x= }Y', 'Xx= '+x+'Y')
172-
# self.assertEqual(f'X{x = }Y', 'Xx = '+x+'Y')
171+
# self.assertEqual(f'X{x = }Y', 'Xx = '+x+'Y')

0 commit comments

Comments
 (0)