Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of dynamic test suite generation #716

Merged
merged 1 commit into from Jun 11, 2020

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Jun 11, 2020

type used in common_utils generates test class definition in common_utils and
this modifies the module state after it's imported. This is anti-pattern.
This PR get rid of the related utility functions and define test suite manually.

Follow up #712

@mthrok mthrok force-pushed the fix-test-parameterization branch from a801bc1 to e79d6d3 Compare June 11, 2020 18:59
`type` used in `common_utils` generates test class definition in `common_utils` and
this modifies the module state after it's imported. This is anti-pattern.
This PR get rid of the related utility functions and define test suite manually.
@mthrok mthrok force-pushed the fix-test-parameterization branch from e79d6d3 to 23b0290 Compare June 11, 2020 19:11
@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #716 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #716   +/-   ##
=======================================
  Coverage   89.16%   89.16%           
=======================================
  Files          27       27           
  Lines        2399     2399           
=======================================
  Hits         2139     2139           
  Misses        260      260           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50939b7...23b0290. Read the comment docs.

@mthrok mthrok marked this pull request as ready for review June 11, 2020 19:22
@mthrok mthrok requested a review from vincentqb June 11, 2020 19:23
Copy link
Contributor

@vincentqb vincentqb left a comment

Choose a reason for hiding this comment

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

LGTM

@mthrok mthrok merged commit 0821712 into pytorch:master Jun 11, 2020
@mthrok mthrok deleted the fix-test-parameterization branch June 11, 2020 21:59
@mthrok
Copy link
Collaborator Author

mthrok commented Jun 11, 2020

Thanks!

@mthrok mthrok restored the fix-test-parameterization branch June 11, 2020 23:49
@mthrok mthrok deleted the fix-test-parameterization branch June 11, 2020 23:50
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.

None yet

2 participants