提交 a289e336 authored 作者: nouiz's avatar nouiz

Merge pull request #281 from delallea/win_py24

Fixed tests under Windows
......@@ -736,13 +736,6 @@ This will run tests in batches of 100, which should avoid memory errors.
Note that this script calls ``nosetests``, which may require being run from
within a MinGW shell if you installed Nose manually as described above.
.. note::
The above workaround to run tests with the ``run_tests_in_batch.py`` script
is currently imperfect: some tests are not properly collected by nosetests
in this mode. This may result in some weird test failures starting with
``ERROR: Failure: OSError``. We do not yet have a fix for this problem.
Editing code in Visual Studio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -388,7 +388,10 @@ def makeBroadcastTester(op, expected, checks={}, name=None, **kwargs):
capitalize = True
if capitalize:
name = ''.join([x.capitalize() for x in name.split('_')])
name += "Tester"
# Some tests specify a name that already ends with 'Tester', while in other
# cases we need to add it manually.
if not name.endswith('Tester'):
name += "Tester"
if kwargs.has_key('inplace'):
if kwargs['inplace']:
_expected = expected
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论