Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[tests] Make crowdsource tests whitespace-agnostic #3628

Merged
merged 2 commits into from
Apr 28, 2021
Merged

[tests] Make crowdsource tests whitespace-agnostic #3628

merged 2 commits into from
Apr 28, 2021

Conversation

stephenroller
Copy link
Contributor

@stephenroller stephenroller commented Apr 28, 2021

Patch description
#3621 broke crowdsourcing tests by stripping a bunch of whitespace from our regression files. Annoying, but just correct for this in the test and strip the comparison point as well.

Testing steps
CI.

Copy link
Contributor

@EricMichaelSmith EricMichaelSmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, seems reasonable, thanks!

@@ -191,7 +191,7 @@ def _check_file_contents(
results_folder=results_folder, file_suffix=file_suffix
)
with open(file_path) as f:
contents = f.read()
contents = f.read().rstrip('\n') + '\n'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this works - maybe there can be a comment saying why this is needed (i.e. to be insensitive to whitespace linting issues?)

@stephenroller stephenroller marked this pull request as ready for review April 28, 2021 13:57
@stephenroller stephenroller merged commit 823a583 into master Apr 28, 2021
@stephenroller stephenroller deleted the cs branch April 28, 2021 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants