Skip to content

Commit

Permalink
pythongh-128694: Fix (env changed) error in test_inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jan 10, 2025
1 parent 5437f66 commit 28764f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
from test.test_inspect import inspect_deferred_annotations


def tearDownModule():
asyncio._set_event_loop_policy(None)


# Functions tested in this suite:
# ismodule, isclass, ismethod, isfunction, istraceback, isframe, iscode,
# isbuiltin, isroutine, isgenerator, ispackage, isgeneratorfunction, getmembers,
Expand Down Expand Up @@ -2796,6 +2792,10 @@ async def number_asyncgen():
async def asyncTearDown(self):
await self.asyncgen.aclose()

@classmethod
def tearDownClass(cls):
asyncio._set_event_loop_policy(None)

def _asyncgenstate(self):
return inspect.getasyncgenstate(self.asyncgen)

Expand Down

0 comments on commit 28764f1

Please sign in to comment.