<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/ma/testutils.py, branch v1.15.3</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>MAINT: Remove all uses of run_module_suite.</title>
<updated>2018-04-07T00:20:56+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-04-04T16:33:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7bf0564f87511d9e7b6287b3eec0857d0d7742df'/>
<id>7bf0564f87511d9e7b6287b3eec0857d0d7742df</id>
<content type='text'>
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That function is nose specific and has not worked since `__init__` files
were added to the tests directories.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove use of unittest in NumPy tests.</title>
<updated>2018-03-21T18:38:14+00:00</updated>
<author>
<name>xoviat</name>
<email>xoviat@users.noreply.github.com</email>
</author>
<published>2018-02-28T23:59:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ed6c0dd342c7d6def2600db00c3eaf75e16a39d2'/>
<id>ed6c0dd342c7d6def2600db00c3eaf75e16a39d2</id>
<content type='text'>
This removes a few left over uses of unittest. The main changes apart
from removal of Test case are:

* `setUp` replaced by nose and pytest compatible `setup`
* `tearDown` replaced by nose and pytest compatible `teardown`
* `assertRaises` replaced by `assert_raises`
* `assertEqual` replaced by `assert_equal`

The last two are in `numpy/testings/tests/test_utils.py`, so may seem a
but circular, but at least are limited to those two functions.

The use of `setup` and `teardown`, can be fixed up with the pytest
equivalents after we have switched to pytest.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes a few left over uses of unittest. The main changes apart
from removal of Test case are:

* `setUp` replaced by nose and pytest compatible `setup`
* `tearDown` replaced by nose and pytest compatible `teardown`
* `assertRaises` replaced by `assert_raises`
* `assertEqual` replaced by `assert_equal`

The last two are in `numpy/testings/tests/test_utils.py`, so may seem a
but circular, but at least are limited to those two functions.

The use of `setup` and `teardown`, can be fixed up with the pytest
equivalents after we have switched to pytest.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Rearrange files in numpy/testing module.</title>
<updated>2017-07-05T01:51:58+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2017-07-04T19:47:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ae84af3b6e6d96e4be408e8a56408290ee1879db'/>
<id>ae84af3b6e6d96e4be408e8a56408290ee1879db</id>
<content type='text'>
The aim here is to separate out the nose dependent files prior to adding
pytest support. This could be done by adding new files to the general
numpy/testing directory, but I felt that it was to have the relevant
files separated out as it makes it easier to completely remove nose
dependencies when needed.

Many places were accessing submodules in numpy/testing directly, and in
some cases incorrectly. That presented a backwards compatibility
problem. The solution adapted here is to have "dummy" files whose
contents will depend on whether of not pytest is active. That way the
module looks the same as before from the outside.

In the case of numpy itself, direct accesses have been fixed. Having
proper `__all__` lists in the submodules helped in that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The aim here is to separate out the nose dependent files prior to adding
pytest support. This could be done by adding new files to the general
numpy/testing directory, but I felt that it was to have the relevant
files separated out as it makes it easier to completely remove nose
dependencies when needed.

Many places were accessing submodules in numpy/testing directly, and in
some cases incorrectly. That presented a backwards compatibility
problem. The solution adapted here is to have "dummy" files whose
contents will depend on whether of not pytest is active. That way the
module looks the same as before from the outside.

In the case of numpy itself, direct accesses have been fixed. Having
proper `__all__` lists in the submodules helped in that.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Remove warning NaT filter from masked array test utils</title>
<updated>2017-05-07T14:21:30+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2017-05-07T14:06:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ca05d523c3d022eba8ea1bf75b50c60550d30d5a'/>
<id>ca05d523c3d022eba8ea1bf75b50c60550d30d5a</id>
<content type='text'>
This may show warnings in downstream projects, which should likely
not be there. We could also drop in the normal assert_equal there,
which would support NaT, and NaN, but checks for scalarness, which
this currently does not (which also could create problems).

Works around the only test with this problem, by using the normal
assert_equal there.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This may show warnings in downstream projects, which should likely
not be there. We could also drop in the normal assert_equal there,
which would support NaT, and NaN, but checks for scalarness, which
this currently does not (which also could create problems).

Works around the only test with this problem, by using the normal
assert_equal there.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Suppress common NaT warnings</title>
<updated>2016-09-02T08:10:55+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2016-06-19T11:39:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=86b0a5e9c58160bad818ba3a0a6faf38f5ac4d09'/>
<id>86b0a5e9c58160bad818ba3a0a6faf38f5ac4d09</id>
<content type='text'>
Printing of datetime arrays used to cause warning due to
comparison warnings in NaT. This is circumvented by using views
to integer values. Part of this should be simplified when
the deprecation is over.

Also fixes a bug with non-native byteorder.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Printing of datetime arrays used to cause warning due to
comparison warnings in NaT. This is circumvented by using views
to integer values. Part of this should be simplified when
the deprecation is over.

Also fixes a bug with non-native byteorder.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Merge pull request #7001 from shoyer/NaT-comparison"</title>
<updated>2016-01-17T02:06:00+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-01-17T02:00:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e0cb3f79936656d6d2f48cbad46a3a9f2bad5ae1'/>
<id>e0cb3f79936656d6d2f48cbad46a3a9f2bad5ae1</id>
<content type='text'>
This reverts commit 7141f40b58ed1e7071cde78ab7bc8ab37e9c5983,
reversing changes made to 8fa6e3bef26a6d4a2c92f2824129aa4409be2590.

The original broke some pandas tests. The current plan to get this
in is

* reversion
* issue FutureWarning in 1.11 and 1.12
* make the change in 1.13.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 7141f40b58ed1e7071cde78ab7bc8ab37e9c5983,
reversing changes made to 8fa6e3bef26a6d4a2c92f2824129aa4409be2590.

The original broke some pandas tests. The current plan to get this
in is

* reversion
* issue FutureWarning in 1.11 and 1.12
* make the change in 1.13.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST, ENH: make all comparisons with NaT false</title>
<updated>2016-01-14T21:44:43+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@climate.com</email>
</author>
<published>2016-01-13T04:44:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=53ad26a84ac2aa6f5a37f09aa9feae5afed44f79'/>
<id>53ad26a84ac2aa6f5a37f09aa9feae5afed44f79</id>
<content type='text'>
Now, NaT compares like NaN:
- NaT != NaT -&gt; True
- NaT == NaT (and all other comparisons) -&gt; False

We discussed this on the mailing list back in October:
https://mail.scipy.org/pipermail/numpy-discussion/2015-October/073968.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now, NaT compares like NaN:
- NaT != NaT -&gt; True
- NaT == NaT (and all other comparisons) -&gt; False

We discussed this on the mailing list back in October:
https://mail.scipy.org/pipermail/numpy-discussion/2015-October/073968.html
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Continue to export some testing functions from ma.testutils.</title>
<updated>2015-07-25T17:39:05+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-07-05T06:30:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=acd85d569c81e12b0b2ee37e40997cbabbd5ebc6'/>
<id>acd85d569c81e12b0b2ee37e40997cbabbd5ebc6</id>
<content type='text'>
This is for backward compatibility. We may want to add more testing
functions if other folks run into problems in the 1.10 release.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is for backward compatibility. We may want to add more testing
functions if other folks run into problems in the 1.10 release.
</pre>
</div>
</content>
</entry>
<entry>
<title>STY,MAINT: Run pyflakes and pep8 on numpy/ma/tests/*.</title>
<updated>2015-07-25T17:39:05+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-07-05T05:37:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b733a10a9cc806f4772728015ec1bd9e63322858'/>
<id>b733a10a9cc806f4772728015ec1bd9e63322858</id>
<content type='text'>
Also fix "*" imports.

The formatting of test arrays is not fixed for multiple spaces following
"," and other violations that are common in tests. To be precise, E241
and E201 are added to the errors that are excluded.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also fix "*" imports.

The formatting of test arrays is not fixed for multiple spaces following
"," and other violations that are common in tests. To be precise, E241
and E201 are added to the errors that are excluded.
</pre>
</div>
</content>
</entry>
<entry>
<title>STY,MAINT: PEP8 and pyflakes fixes for numpy/ma/*.py</title>
<updated>2015-07-05T05:50:39+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-07-04T23:09:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7c8c9adda27efe7f84fc98240ee1b7fa15714f06'/>
<id>7c8c9adda27efe7f84fc98240ee1b7fa15714f06</id>
<content type='text'>
Also

* Add __all__ to numpy/ma/testutils.py
* Remove various stray "#"

We might want to consider removing/refactoring both numpy/ma/bench.py
and numpy/ma/timer_comparison.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also

* Add __all__ to numpy/ma/testutils.py
* Remove various stray "#"

We might want to consider removing/refactoring both numpy/ma/bench.py
and numpy/ma/timer_comparison.
</pre>
</div>
</content>
</entry>
</feed>
