tinygrad/test/unit
Stan 9b6e57eccd
helpers.py: improved test coverage + exception handling (#1165)
* Fixes + improved test coverage for helpers.py

- added exception handling in `proc`, if an exception was thrown, the thread would hang
- made `_early_exec_process` catch any Exception, before if an exception was thrown before the process was started, it would hand the thread

* Made `_early_exec_process` catch any Exception

 Otherwise, if an exception was thrown before the process was started, it would hang the thread. For example a type error for an argument passed to `subprocess.check_output`

* Fixed `from tinygrad.helpers import Timing` import

oops, for some reason my IDE cleaned that import from extra/helpers.

* Fixed import in llama.py

Another one that I skipped by accident, mybad

* Extracted a class for tests of early exec

* Normalize line endings, windows uses /r/n

* Made `cross_process` not a daemon
2023-07-07 10:26:05 -07:00
..
test_disk_tensor.py helpers.py: improved test coverage + exception handling (#1165) 2023-07-07 10:26:05 -07:00
test_example.py test speed llama (#1046) 2023-06-25 15:22:56 -07:00
test_flopcounter.py Fix PytestCollectionWarning when running tests (#791) 2023-05-24 23:17:57 -07:00
test_graph.py Devicebufferless (#708) 2023-03-18 14:40:23 -07:00
test_shapetracker.py from tensor cores + lb touchup (#1127) 2023-07-04 15:45:20 -07:00
test_symbolic.py new upcast works (#1066) 2023-06-27 19:34:53 -07:00
test_weak.py realize hotspots (#1059) 2023-06-26 18:31:18 -07:00