Update README.md typo
John
2024-02-29 19:14:42 -0800
d94e37bb40Add .gitignore to ignore the auto-downloaded GoodTests.py if runTests.py is used
4.4branch
Tim Savannah
2023-04-23 04:30:07 -0400
178da73d27Update copyright years, version number for 4.4.0. Update compatible python versions all the way up to 3.9
Tim Savannah
2023-04-23 04:27:50 -0400
cc4c55839dSupport nested StoppableThreads properly raising exception to correct context
Tim Savannah
2023-04-23 04:15:28 -0400
7531c64f9bFunctionTimedOut inherits TimeoutError
Edvard Rejthar
2019-11-07 13:57:37 +0100
50baa8db50Fix years in copyright notice of func_timeout.exceptions. Will not be a new release just for this.
4.3.6
Tim Savannah
2019-08-19 17:52:33 -0400
514225621fUpdate cachebust reference in READMEs to pydocs from 4.3.4 to 4.3.5 to reflect newest version
Tim Savannah
2019-08-19 17:31:29 -0400
5452efab5bRegenerate pydocs
Tim Savannah
2019-08-19 17:31:02 -0400
5d2afb9582Changelog
Tim Savannah
2019-08-19 17:30:01 -0400
af7d6e8a39Allow instantiation of FunctionTimedOut with empty arguments (to support some patterns in unit testing / mocking). Will replace function name with "Unknown Function" if not provided, and timedOutAfter will be "Unknown" or a float of how long until timeout occurred.
Tim Savannah
2019-08-19 17:28:33 -0400
cf8a9545bcUpdate to GoodTests runTests.py version 3.0.5 from 2.1.1
Tim Savannah
2019-08-19 17:16:48 -0400
176ef7b9d9Increase test timing and thresholds so it works on slower computers as well.
Tim Savannah
2019-08-19 17:14:48 -0400
Use is_alive in favor of deprecated isAlive
Rafał Florczak
2019-08-19 12:01:00 +0200
bdc7072176Update pydoc link with a different value on the GET params to force a regen if old version was cached.
4.3.3
Tim Savannah
2019-05-13 16:30:03 -0400
e90d850871Regen pydocs, and generate py2_raise again as well
Tim Savannah
2019-05-13 16:28:08 -0400
8ab818f94a4.3.3
Tim Savannah
2019-05-13 16:26:25 -0400
317a65ce08Changelog
Tim Savannah
2019-05-13 16:26:04 -0400
5f9a1e493aUpdate READMEs and note both ways to create a thread, instead of I think implying that you MUST extend the class.
Tim Savannah
2019-05-13 16:25:45 -0400
6e869794efAdd expected value before print on old testit.py, and docstring to note where other tests are located.
Tim Savannah
2019-05-13 11:47:07 -0400
84528e67edUpdate mkdoc.sh script to ensure we are in project root dir and to enable nullglob
Tim Savannah
2019-05-13 11:43:20 -0400
81759d9b2bRemove TODO file
Tim Savannah
2019-05-13 11:39:16 -0400
00685ec546Issue #2 (Resolve) - Ensure we do not lose function information when using the func_set_timeout wrapper.
Tim Savannah
2017-08-10 18:46:14 -0400
5e15db92b6Changelog
Tim Savannah
2017-06-04 04:47:10 -0400
e99d1d8957Add StoppableThread to the root module (so from 'func_timeout import StoppableThread' now works, instead of needing to do 'from func_timeout.StoppableThread import StoppableThread')
Tim Savannah
2017-06-04 04:46:47 -0400
0e43f0b161pydoc
Tim Savannah
2017-06-04 04:44:20 -0400
f21d4b4b49Update READMEs to note StoppableThread
Tim Savannah
2017-06-04 04:43:56 -0400
6bee825db7Add a bunch of comments to StoppableThread
Tim Savannah
2017-06-04 04:41:44 -0400
19497ca2294.2.0
Tim Savannah
2017-06-04 04:30:58 -0400
4190710ec4Update pydoc
Tim Savannah
2017-06-04 04:29:58 -0400
57aed88c7aAdd 'stop' method (rather than _stopThread) to StoppableThread
4.1branch
Tim Savannah
2017-05-28 01:11:42 -0400
0e2b0e9c3edoc
Tim Savannah
2017-05-24 02:14:11 -0400
5e44de7210Changelog
Tim Savannah
2017-05-24 02:12:07 -0400
9e1ac2fb8cChange to using clever import strategy such that we dont have to use exec/eval
Tim Savannah
2017-05-24 02:08:15 -0400
76cf4f6456Much better exception handling - Have them make more sense. Get rid of the multiple traceback prints, one for each level of catchs on python3. Also improve traceback on both python3 and python2 to exclude the function wrapper, and instead follow the execution frame. Downside is that neither form compiles on the other python, so have to use exec...
Tim Savannah
2017-05-24 02:01:58 -0400
fd0260fc05For python >= 3.3, raise with the chained exception context disabled, since the funcwrap wrapper is within the context where the exception would be thrown (on python3+)
Tim Savannah
2017-05-24 01:32:55 -0400
3275780482Changelog
Tim Savannah
2017-05-24 01:23:34 -0400
5a6187122dForce cleanup of thread if function completes in time. On python2 this forces the thread to be cleaned up right-away, on python3 it would get cleaned up during the next garbage-collect cycle. In python2 it may take several rounds.
Tim Savannah
2017-05-24 01:22:17 -0400
0c1f6a7de6README list pydocs
Tim Savannah
2017-05-20 21:40:34 -0400
b6c02653b84.0.0
Tim Savannah
2017-05-20 21:38:02 -0400
cfa466a302Changelog
Tim Savannah
2017-05-20 21:30:36 -0400
ca8a3a3534Short README update
Tim Savannah
2017-05-20 21:30:13 -0400
8af967169dMake python2 work as well as python3
Tim Savannah
2017-05-20 21:23:37 -0400
f20e8e727cFix so instantiation works in async exception. Also, dont need to worry about the exception comment, as we use BaseException and have for a while to prevent such.
Tim Savannah
2017-05-20 21:14:58 -0400
525c291aefRegen html
Tim Savannah
2017-05-20 17:20:47 -0400
d6ff5e1932Make StoppableThread.JoinThread have a configurable retry interval (still default 2 seconds). Will attempt to retry stopping thread every this-many seconds
Tim Savannah
2017-05-20 17:20:23 -0400
e554cd0252Update docstring text
Tim Savannah
2017-05-20 17:13:48 -0400
d10476b734Update pydoc
Tim Savannah
2017-05-20 17:11:59 -0400
63454c7178Add mkdoc.sh script
Tim Savannah
2017-05-20 17:11:54 -0400
9d3eec0475Add README for tests dir, and add tests to MANIFEST.in
Tim Savannah
2017-05-20 17:10:16 -0400
e4cf7fa765Add TODO
Tim Savannah
2017-05-20 17:07:26 -0400
ad944d3c2cAdd tests
Tim Savannah
2017-05-20 17:06:51 -0400
b729265855Add msg property to FunctionTimedOut exception (also can get by str( exception )
Tim Savannah
2017-05-20 17:04:22 -0400
75d90251f6Add missing import
Tim Savannah
2017-05-20 16:51:07 -0400
2079932b4eChangelog
Tim Savannah
2017-05-20 16:24:24 -0400
0ccca87e2cSome tests
Tim Savannah
2017-05-20 16:22:14 -0400
36b7d6f266Decrease thread join time. Because it is a daemon thread it will get closed automatically on garbage collect, just need to initate a join at all.
Tim Savannah
2017-05-20 16:21:43 -0400
5b93fe5d7cExpand FunctionTimedOut exception to have attributes of the timeout, function that failed, args and kwargs. Also add a standard getMsg function for generating consistant message, and add a retry function to retry the function again with either same timeout, different timeout, or no timeout.
Tim Savannah
2017-05-20 16:04:39 -0400
c3a114e1dfSometimes depending on critical section during timeout, traceback could be printed to stderr. Stop that.
Tim Savannah
2017-05-20 15:49:17 -0400
b1a05fe92fAdd GoodTests.py suite, some utils which will be used, and a test for the test. How meta!
Tim Savannah
2017-05-20 02:22:24 -0400