From 36c5ff1d05dc46a1628310069466a96979265594 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sat, 31 Mar 2018 14:23:29 +0100 Subject: [PATCH] minimize_source: Make comments test invariant on hashbang/coding handling strip_comments() currently ignores comments on lines 1 and 2, in order to preserve lines such as The comments test had normal comments on those lines, hence it was failing. --- tests/data/minimize_samples/comment.py | 2 ++ tests/data/minimize_samples/comment_min.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/data/minimize_samples/comment.py b/tests/data/minimize_samples/comment.py index 9f60ccf2..0ce01fc3 100644 --- a/tests/data/minimize_samples/comment.py +++ b/tests/data/minimize_samples/comment.py @@ -1,2 +1,4 @@ + + # comment # comment diff --git a/tests/data/minimize_samples/comment_min.py b/tests/data/minimize_samples/comment_min.py index 8b137891..fd40910d 100644 --- a/tests/data/minimize_samples/comment_min.py +++ b/tests/data/minimize_samples/comment_min.py @@ -1 +1,4 @@ + + +