◐ Shell
reader mode source ↗
Skip to content

bpo-30524: Write unit tests for FASTCALL#2022

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:test_fastcall
Jun 9, 2017
Merged

bpo-30524: Write unit tests for FASTCALL#2022
vstinner merged 1 commit into
python:masterfrom
vstinner:test_fastcall

Conversation

@vstinner

@vstinner vstinner commented Jun 9, 2017

Copy link
Copy Markdown
Member

Test C functions:

  • _PyObject_FastCall()
  • _PyObject_FastCallDict()
  • _PyObject_FastCallKeywords()

Test C functions:

* _PyObject_FastCall()
* _PyObject_FastCallDict()
* _PyObject_FastCallKeywords()
@vstinner

vstinner commented Jun 9, 2017

Copy link
Copy Markdown
Member Author

I rewrote my change to test much more cases. Most (or all?) possible ways to call FastCall functions should now be tested.

@serhiy-storchaka serhiy-storchaka left a comment

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.

Hide comment

Would be nice to backport tests at least to 3.6. This could expose 3.6 bugs fixed in 3.7.

@vstinner vstinner merged commit 3b5cf85 into python:master Jun 9, 2017
@vstinner vstinner deleted the test_fastcall branch June 9, 2017 14:48
@vstinner

vstinner commented Jun 9, 2017

Copy link
Copy Markdown
Member Author

Would be nice to backport tests at least to 3.6.

Sure, I wrote this change for 3.6, to test the datetime.datetime.now() bug :-) But obvious, firstI wrote it for master.

vstinner added a commit that referenced this pull request Jun 9, 2017
Test C functions:

* _PyObject_FastCall()
* _PyObject_FastCallDict()
* _PyObject_FastCallKeywords()
(cherry picked from commit 3b5cf85)
ma8ma added a commit to ma8ma/cpython that referenced this pull request Jun 13, 2017
Resolve conflicts:
3b5cf85 bpo-30524: Write unit tests for FASTCALL (python#2022)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants