| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| array = array_type() | ||
| self.assertRaises(TypeError, cast, array, None) | ||
| self.assertRaises(TypeError, cast, array, array_type) | ||
| class Struct(Structure): |
There was a problem hiding this comment.
I don't know if cpython does this, but linking to the bug number in the test might be nice.
Sorry, something went wrong.
There was a problem hiding this comment.
Fix looks obviously correct to me, and I can verify the test fails without it.
Sorry, something went wrong.
…ed data type (pythonGH-3859) (cherry picked from commit d518d8b) Co-authored-by: Oren Milman <orenmn@gmail.com>
|
GH-6745 is a backport of this pull request to the 3.7 branch. |
Sorry, something went wrong.
|
Sorry, @orenmn and @zooba, I could not cleanly backport this to 2.7 due to a conflict. |
Sorry, something went wrong.
…ed data type (pythonGH-3859) (cherry picked from commit d518d8b) Co-authored-by: Oren Milman <orenmn@gmail.com>
|
GH-6746 is a backport of this pull request to the 3.6 branch. |
Sorry, something went wrong.
Sorry, something went wrong.
|
sorry Eric, but i am too busy nowadays... |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In addition, add tests to test_ctypes to make sure that cast() raises a TypeError in case of a bad type argument (and doesn't crash).
https://bugs.python.org/issue21983