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"" assert amc._strip_comments(all_comments) == u""
def test_all_whitespace(self): def test_all_whitespace(self):
# Note: Do not remove the spaces on the blank lines below. They're all_whitespace = (
# test data to show that the lines get removed despite having spaces '\n'
# on them ' \n'
all_whitespace = u""" '\n'
' \n'
'\t\t\r\n'
'\n'
\t\t\r\n ' '
""" # nopep8 )
assert amc._strip_comments(all_whitespace) == u"" assert amc._strip_comments(all_whitespace) == u""
def test_somewhat_normal(self): def test_somewhat_normal(self):

Loading…
Cancel
Save