You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last):
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File ".../unit/reddit/test_reddit_bot.py", line 205, in test_comment_loop
comment = bot._comment_loop(test=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../src/reddit_bot/bot.py", line 387, in _comment_loop
self.process_comment(comment=comment)
File ".../src/reddit_bot/bot.py", line 155, in process_comment
comments_table.insert(comment_data)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 163, in insert
doc_id = self._get_next_id()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 679, in _get_next_id
table = self._read_table()
^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 708, in _read_table
tables = self._storage.read()
^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/middlewares.py", line 99, in read
self.cache = self.storage.read()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/storages.py", line 124, in read
self._handle.seek(0, os.SEEK_END)
ValueError: I/O operation on closed file.
Traceback (most recent call last):
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File ".../unit/reddit/test_reddit_bot.py", line 174, in test_process_comment
bot.process_comment(comment=slash_command_comment)
File ".../src/reddit_bot/bot.py", line 155, in process_comment
comments_table.insert(comment_data)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 163, in insert
doc_id = self._get_next_id()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 679, in _get_next_id
table = self._read_table()
^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 708, in _read_table
tables = self._storage.read()
^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/middlewares.py", line 99, in read
self.cache = self.storage.read()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/storages.py", line 124, in read
self._handle.seek(0, os.SEEK_END)
ValueError: I/O operation on closed file.
Traceback (most recent call last):
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File ".../unit/reddit/test_reddit_bot.py", line 190, in test_process_submission
bot.process_submission(submission=_submission)
File ".../src/reddit_bot/bot.py", line 212, in process_submission
submissions_table.insert(submission_data)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 163, in insert
doc_id = self._get_next_id()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 679, in _get_next_id
table = self._read_table()
^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 708, in _read_table
tables = self._storage.read()
^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/middlewares.py", line 99, in read
self.cache = self.storage.read()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/storages.py", line 124, in read
self._handle.seek(0, os.SEEK_END)
ValueError: I/O operation on closed file.
Traceback (most recent call last):
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 344, in from_call
result: TResult | None = func()
^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 246, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/logging.py", line 850, in pytest_runtest_call
yield
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/capture.py", line 900, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/_pytest/skipping.py", line 263, in pytest_runtest_call
return (yield)
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/_pytest/runner.py", line 178, in pytest_runtest_call
item.runtest()
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 1671, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_hooks.py", line 512, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 167, in _multicall
raise exception
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 139, in _multicall
teardown.throw(exception)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 53, in run_old_style_hookwrapper
return result.get_result()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/pluggy/_result.py", line 103, in get_result
raise exc.with_traceback(tb)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 38, in run_old_style_hookwrapper
res = yield
^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12......................................./site-packages/pluggy/_callers.py", line 121, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12....../site-packages/_pytest/python.py", line 157, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File ".../unit/reddit/test_reddit_bot.py", line 210, in test_submission_loop
submission = bot._submission_loop(test=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../src/reddit_bot/bot.py", line 410, in _submission_loop
self.process_submission(submission=submission)
File ".../src/reddit_bot/bot.py", line 212, in process_submission
submissions_table.insert(submission_data)
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 163, in insert
doc_id = self._get_next_id()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 679, in _get_next_id
table = self._read_table()
^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12........./site-packages/tinydb/table.py", line 708, in _read_table
tables = self._storage.read()
^^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/middlewares.py", line 99, in read
self.cache = self.storage.read()
^^^^^^^^^^^^^^^^^^^
File ".../hostedtoolcache/Python/3.12.11................................................................................................/x64/lib/python3.12.../site-packages/tinydb/storages.py", line 124, in read
self._handle.seek(0, os.SEEK_END)
ValueError: I/O operation on closed file.
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks!
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR changes the following:
TODO:
tinydb.Queryis usedScreenshot
Issues Fixed or Closed
Type of Change
.github/...)Checklist