Chris Kuehl
aa50a8cde0
Switch to using concurrent.futures
2018-10-24 16:33:06 -07:00
Chris Kuehl
231f6013bb
Allow more time on the concurrency test
...
Spawning processes is apparently really slow on Windows, and the test is
occasionally taking slightly more than a second on AppVeyor. I think we
can allow up to the full 2.5 seconds without losing the valuable bits of
the test.
2018-10-24 16:33:06 -07:00
Chris Kuehl
b6926e8e2e
Attempt to partition files to use all possible cores
2018-10-24 16:33:06 -07:00
Chris Kuehl
ba5e27e4ec
Implement concurrent execution of individual hooks
2018-10-24 16:16:10 -07:00
Anthony Sottile
ead906aed0
Compute win32 python2 length according to encoded size
2018-10-23 22:02:48 -07:00
George Y. Kussumoto
3d573d8736
Fix xargs.partion: win32 test
2018-10-09 23:32:46 -03:00
George Y. Kussumoto
c9e297ddb6
Fix xargs.partition: win32 new string length computation
2018-10-09 22:54:41 -03:00
George Y. Kussumoto
2560280d21
Fix xargs.partition tests: explicity set unicode chars
2018-10-08 19:42:59 -03:00
George Y. Kussumoto
bb6b1c33ae
Remove pytest-mock
2018-10-06 19:57:30 -03:00
George Y. Kussumoto
2ad69e12ce
Fix xargs.partition: use sys.getfilesystemencoding
...
The previous `sys.getdefaultencoding` almost always fallsback to
`ascii` while `sys.getfilesystemencoding` is utf-8 once in utf-8 mode.
2018-10-05 16:39:49 -03:00
George Y. Kussumoto
df5d171cd7
Fix xargs.partition tests in python2.7 (pytest-mock)
2018-10-05 14:33:32 -03:00
George Y. Kussumoto
fa4c03da65
Update xargs.partition with platform information
...
Change how xargs.partition computes the command length (including
arguments) depending on the plataform.
More specifically, 'win32' uses the amount of characters while posix
system uses the byte count.
2018-10-05 11:54:31 -03:00
Anthony Sottile
a157e1a63f
xargs returns nonzero for negate + not found exe (fixes pcre + not found #447 )
2016-12-04 15:07:35 -08:00
Anthony Sottile
a932315a15
Implement 'negate' to simplify pcre
2016-03-25 11:21:50 -07:00
Anthony Sottile
b7d395410b
Implement a simplified xargs in python
2016-03-25 11:21:50 -07:00