Whole file

erdewit/nest_asyncio

The author described this change as Fix unitialized _nesting_level on new event-loop instances.. It counts as a record because the check below fails on the code as it stood at fd06ced3e and passes on ec105bca4, with nothing else changed between the two runs.

Fix saved2018-11-19
Sharing licenceBSD-2-Clause · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a save note

Fix unitialized _nesting_level on new event-loop instances.

The change

109109 cls = loop.__class__
110110 cls._run_until_complete_orig = cls.run_until_complete
111111 cls.run_until_complete = run_until_complete
112- loop._nesting_level = 0
112+ cls._nesting_level = 0
113113
114114
115115 def _patch_task():

The check that tells the two apart

failpass·tests/nest_test.py::NestTest::test_ensure_future_with_run_until_complete

Check file tests/nest_test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itfd06ced3e27fef1237136a2c2d32e82f2e0c3331
Broken version dated2018-10-21
Modulenest_asyncio
Units changed_patch_loop
Fingerprint7e7aed0f80f6b843
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.