Skip to content

Remove duplicate tests#890

Merged
pganssle merged 2 commits into
dateutil:masterfrom
jbrockmendel:tclean
Feb 27, 2019
Merged

Remove duplicate tests#890
pganssle merged 2 commits into
dateutil:masterfrom
jbrockmendel:tclean

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

Add a check so that duplicates don't sneak back in.

Rename TestInputFormats to the more accurate TestInputTypes.

A couple more test-cleanup PRs coming up (one with an actual bugfix), trying to keep them small and orthogonal.



class TestInputFormats(object):
class TestInputTypes(object):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why Types instead of Formats?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because whats being tested here is different types: bytes vs unicode vs bytearray vs StringIO...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, I was a bit thrown by the fact that the first test is just an empty string. I see now.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Looks like no rebase needed.

@pganssle

Copy link
Copy Markdown
Member

@jbrockmendel Can you add a changelog?

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

done

@pganssle pganssle changed the title CLN: Remove duplicate tests Remove duplicate tests Feb 27, 2019
Since all the TestInputFormats tests are about different input *types*,
TestInputTypes is a more descriptive name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants