Avoid trailing spaces in unit test (#80033)

pull/80037/head
Matt Clay 2 years ago committed by GitHub
parent 21fc699b77
commit 72c59cfd98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,15 +43,16 @@ class TestStripComments:
assert amc._strip_comments(all_comments) == u""
def test_all_whitespace(self):
# Note: Do not remove the spaces on the blank lines below. They're
# test data to show that the lines get removed despite having spaces
# on them
all_whitespace = u"""
\t\t\r\n
""" # nopep8
all_whitespace = (
'\n'
' \n'
'\n'
' \n'
'\t\t\r\n'
'\n'
' '
)
assert amc._strip_comments(all_whitespace) == u""
def test_somewhat_normal(self):

Loading…
Cancel
Save