| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Use the @ctypes.util.wrap_dll_function() decorator with ctypes.pythonapi to wrap Python C API functions in the test suite.
Sorry, something went wrong.
There was a problem hiding this comment.
The readability improvement is really nice
Sorry, something went wrong.
Readability is nice, but my first motivation is correctness. The new syntax reduces the risk of typo when declaring a ctypes function. |
Sorry, something went wrong.
Ah, test_logging failed. I just re-ran the job. FAIL: test_rollover_at_midnight (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_at_midnight)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\cpython\cpython\Lib\test\test_logging.py", line 6749, in test_rollover_at_midnight
self.assertIn(f'testing2 {i}', line)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'testing2 0' not found in '2026-07-19 11:25:12,102 testing1 0\n'
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Use the @ctypes.util.wrap_dll_function() decorator with ctypes.pythonapi to wrap Python C API functions in the test suite.