| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| s2 = struct.Struct(s.format.encode()) | ||
| self.assertEqual(s2.format, s.format) | ||
|
|
||
| @support.cpython_only |
There was a problem hiding this comment.
Why is this test cpython only?
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good:
struct_obj.iter_unpack(b'foo')
Traceback (most recent call last):
File "", line 1, in
ValueError: Struct.init() wasn't called
Can you respond to:
pppery on 16 Sep 2018
Why is this test cpython only?
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In addition, add tests to test_struct to make sure the assertion failures and the crash are no more.
https://bugs.python.org/issue31779