Skip to content

Commit 972503c

Browse files
committed
fixed qute handling in tests
1 parent e7ec972 commit 972503c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/snippets/fstrings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def __str__(self):
7474
# Test format specifier after conversion flag
7575
#assert f'{"42"!s:<5}' == '42 ', '#' + f'{"42"!s:5}' +'#' # TODO: default alignment in cpython is left
7676

77-
assert f'{"42"!s:<5}' == '42 ', '#' + f'{"42"!s:5}' +'#'
78-
assert f'{"42"!s:>5}' == ' 42', '#' + f'{"42"!s:5}' +'#'
77+
assert f'{"42"!s:<5}' == '42 ', '#' + f'{"42"!s:<5}' +'#'
78+
assert f'{"42"!s:>5}' == ' 42', '#' + f'{"42"!s:>5}' +'#'
7979

80-
#assert f'{"42"=!s:5}' == '42=42 ', '#'+ f'{"42"!s:5}' +'#' # TODO add ' arround string literal in expression # TODO default alingment in cpython is left
81-
assert f'{"42"=!s:<5}' == '42=42 ', '#'+ f'{"42"!s:5}' +'#' # TODO add ' arround string literal in expression
82-
assert f'{"42"=!s:>5}' == '42= 42', '#'+ f'{"42"!s:5}' +'#' # TODO add ' arround string literal in expression
80+
#assert f'{"42"=!s:5}' == '42=42 ', '#'+ f'{"42"=!s:5}' +'#' # TODO add ' arround string literal in expression # TODO default alingment in cpython is left
81+
assert f'{"42"=!s:<5}' == '"42"=42 ', '#'+ f'{"42"=!s:<5}' +'#' # TODO add ' arround string literal in expression
82+
assert f'{"42"=!s:>5}' == '"42"= 42', '#'+ f'{"42"=!s:>5}' +'#' # TODO add ' arround string literal in expression
8383

8484

8585

0 commit comments

Comments
 (0)