Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pykern/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def destroy(self):
self._destroyed = True
self._client.remove_call(self._call_id)
if x := getattr(self._reply_q, "shutdown", None):
x.shutdown(immediate=True)
x(immediate=True)
else:
# Inferior to shutdown, but necessary pre-Python 3.13
self._reply_q.put_nowait(None)
Expand Down
2 changes: 1 addition & 1 deletion pykern/pkcli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

The basic form is: <project> <simple-module> <function>. <simple-module>
is the module without `<root_pkg>.pkcli`. <function> is any function
that begins with a letter and contains word characters (\w).
that begins with a letter and contains word characters.

If the module only has one public function named default_command,
the form is: <project> <simple-module>.
Expand Down
3 changes: 2 additions & 1 deletion tests/pkcli/test2_data/1.in/coroutine_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Force a coroutine never awaited warning

:copyright: Copyright (c) 2023 RadiaSoft LLC. All Rights Reserved.
Expand All @@ -7,9 +6,11 @@


def test_coroutine_never_awaited():
from pykern import pkdebug
import asyncio

async def coroutine():
asyncio.sleep(0)

pkdebug.pkdlog("expect 'RuntimeWarning: coroutine 'sleep' was never awaited'")
asyncio.run(coroutine())
2 changes: 1 addition & 1 deletion tests/sql_db_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _validate_schema(meta):
t = []
i = []
for l in re.split(
"\s*\n\s*",
r"\s*\n\s*",
# Assumes in same directory
subprocess.check_output(["sqlite3", _PATH, ".schema"], text=True),
):
Expand Down