You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Pairs that should be rejected (allowing more lines causes more complexity)bad_pairs= [
(" a\n ", (" a", "\n ")),
("a \n ", ("a ", "\n ")),
]
forbad_pairinbad_pairs:
arg, goodTuple=bad_pairgood_exception=Falsetry:
self.assertEqual(split_before_newlines(arg), goodTuple)
exceptValueErrorasex:
if"more than one line"instr(ex):
good_exception=Trueelse:
raiseifnotgood_exception:
raiseAssertionError(
"split_before_newlines should reject more than one line"
)
The text was updated successfully, but these errors were encountered:
Probably not, but would require the test change (in str and bytes versions of the test):
replace:
with
The text was updated successfully, but these errors were encountered: