<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/testing/utils.py, branch pr/12889</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>MAINT: add version since deprecation in the deprecation message.</title>
<updated>2018-09-25T21:02:33+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2018-09-25T17:09:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=2523097cab9fea3da5072ee2fd84a6a5fac42bbc'/>
<id>2523097cab9fea3da5072ee2fd84a6a5fac42bbc</id>
<content type='text'>
Otherwise the deprecation message is not that helpful as I have to dig
through the source to find out since when and whether conditional import
is necessary in my code. I may not have numpy on my dev machine (this
message was on CI). So it's one extra step for the consumer.

That's also for you, you have more chance of having consumer update
their code when they have more informations in the deprecation message,
so you can drop old code faster !

At least kudo to Charles Harris for including a comments just above,
that prevented me from having to git blame and go spelunking for knowing
which versions were or not affected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise the deprecation message is not that helpful as I have to dig
through the source to find out since when and whether conditional import
is necessary in my code. I may not have numpy on my dev machine (this
message was on CI). So it's one extra step for the consumer.

That's also for you, you have more chance of having consumer update
their code when they have more informations in the deprecation message,
so you can drop old code faster !

At least kudo to Charles Harris for including a comments just above,
that prevented me from having to git blame and go spelunking for knowing
which versions were or not affected.
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Extract a helper function to test for reference cycles</title>
<updated>2018-04-12T08:25:53+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2018-04-12T07:27:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=5c3d52405b647bc69185f657ed4c180c02ac14f7'/>
<id>5c3d52405b647bc69185f657ed4c180c02ac14f7</id>
<content type='text'>
This also means we can now test that our test is actually able to detect the type of failure we expect

Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also means we can now test that our test is actually able to detect the type of failure we expect

Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP: Issue deprecation warnings for some imports.</title>
<updated>2018-04-07T02:47:00+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-04-04T18:31:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=cf73c76d3078b30b521f8abd19ae7996987784f7'/>
<id>cf73c76d3078b30b521f8abd19ae7996987784f7</id>
<content type='text'>
The following modules have been moved or renamed and should not be
imported. This adds shim modules for the old names that issue a
DeprecationWarning on import.

* numpy/core/umath_tests.py
* numpy/testing/decorators.py
* numpy/testing/noseclasses.py
* numpy/testing/nosetester.py
* numpy/testing/utils.py

Closes #10845.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following modules have been moved or renamed and should not be
imported. This adds shim modules for the old names that issue a
DeprecationWarning on import.

* numpy/core/umath_tests.py
* numpy/testing/decorators.py
* numpy/testing/noseclasses.py
* numpy/testing/nosetester.py
* numpy/testing/utils.py

Closes #10845.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix obvious warning bugs.</title>
<updated>2018-03-30T08:49:53+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-03-30T08:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=ba5625161b36cd891c883bf4bc5a99590bcb2a9a'/>
<id>ba5625161b36cd891c883bf4bc5a99590bcb2a9a</id>
<content type='text'>
The warning type is the second, not the first, argument.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The warning type is the second, not the first, argument.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Warn when importing numpy.testing.&lt;module&gt;.</title>
<updated>2018-03-29T17:41:35+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-03-27T15:41:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=2589616ca6a9b6270c9621af038d90972154914b'/>
<id>2589616ca6a9b6270c9621af038d90972154914b</id>
<content type='text'>
Downstream projects were importing directly from the testing modules
rather than from testing. Discourage this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Downstream projects were importing directly from the testing modules
rather than from testing. Discourage this.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Rearrange numpy/testing files.</title>
<updated>2018-03-29T17:41:35+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2018-03-27T15:26:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=157aedaa50d3c5fc74b45c79fb8b8c4b650217ac'/>
<id>157aedaa50d3c5fc74b45c79fb8b8c4b650217ac</id>
<content type='text'>
This is to prepare for the switch to pytest.

* Rename `numpy/testing/nose_tools` to `numpy/testing/_private`.
* Redirect imports as needed.
* Copy `_testutils.py` from scipy to `numpy/testing/_private`.
* Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is to prepare for the switch to pytest.

* Rename `numpy/testing/nose_tools` to `numpy/testing/_private`.
* Redirect imports as needed.
* Copy `_testutils.py` from scipy to `numpy/testing/_private`.
* Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: do backward compatibility correctly</title>
<updated>2017-12-22T23:31:02+00:00</updated>
<author>
<name>xoviat</name>
<email>xoviat@users.noreply.github.com</email>
</author>
<published>2017-12-22T21:57:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=0f7a8b3dfbd9c99162074aeebc80981cfd3decbb'/>
<id>0f7a8b3dfbd9c99162074aeebc80981cfd3decbb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Make numpy.testing pytest aware.</title>
<updated>2017-12-22T23:30:49+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2017-07-08T01:55:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=604d21792b6e1125dae54f1905bcd8b4a70e912f'/>
<id>604d21792b6e1125dae54f1905bcd8b4a70e912f</id>
<content type='text'>
When the environment has NPY_PYTEST=1, the testing utilities will be
pytest compatible. Typical usage would be something like

$ NPY_PYTEST=1 pytest ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the environment has NPY_PYTEST=1, the testing utilities will be
pytest compatible. Typical usage would be something like

$ NPY_PYTEST=1 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://91.123.203.49/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: KeyboardInterrupt is swallowed all over the place</title>
<updated>2017-06-03T12:59:51+00:00</updated>
<author>
<name>Eric Wieser</name>
<email>wieser.eric@gmail.com</email>
</author>
<published>2017-06-03T12:41:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/numpy.git/commit/?id=1608e53072b035bd40de7a202e75354f0e802120'/>
<id>1608e53072b035bd40de7a202e75354f0e802120</id>
<content type='text'>
Bare except is very rarely the right thing
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bare except is very rarely the right thing
</pre>
</div>
</content>
</entry>
</feed>
