Skip to content

Move testtransform to pytest #3788

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

Merged
merged 1 commit into from
Aug 22, 2017
Merged

Conversation

elazarg
Copy link
Contributor

@elazarg elazarg commented Aug 1, 2017

Another item from #1673, following #3780

I have checked that some tests fail by changing testGlobalVariable from 'semanal-basic.test' and running

./runtests.py pytest -a -n0 -a -k -a testGlobalVariable

(testsemanal is not a pytest yet)

@elazarg
Copy link
Contributor Author

elazarg commented Aug 1, 2017

@gvanrossum

c = [] # type: List[DataDrivenTestCase]
for f in self.transform_files:
for f in cls.transform_files:
c += parse_test_cases(os.path.join(test_data_prefix, f),
test_transform,
Copy link
Contributor Author

@elazarg elazarg Aug 1, 2017

Choose a reason for hiding this comment

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

The argument test_transform, which corresponds to the parameter perform, is not used in pytests. The parameter is propagated to DataDrivenTestCase which uses it in the method run(). This method is not called; maybe we should add assert False there.

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