Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/astropy/pytest-remotedata

Pytest plugin to control whether tests are run that have remote data
https://github.com/astropy/pytest-remotedata

Restore coverage kwarg, since it is part of the astropy affiliated

packages API.

ddb8bb398c78280c75712847e8491a83c46e480b authored almost 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #2112 from mdboom/testing/fix-coverage

--coverage does not measure complete coverage

79c05555afa260078652010ff3c5e9fe424c0ac8 authored almost 11 years ago by Thomas Robitaille <[email protected]>
Merge pull request #2012 from mdboom/testing/doctests-ignore-32bit

Ignore differences between 32-bit and 64-bit ints

3f90a5280132fda439d7ec03bded4a5eabe0dc79 authored almost 11 years ago by Erik Bray <[email protected]>
Make coverage results more accurate by starting coverage collection

before importing astropy.

176753269218d6eb4947d7a45ec640b46c524f92 authored almost 11 years ago by Michael Droettboom <[email protected]>
Fix path cleanup in coverage

ad9190f34de45b75853216e86c3c16bf6f249a01 authored almost 11 years ago by Michael Droettboom <[email protected]>
Make -t work for .rst files.

54acfcd56509551f6b585f0dc04d5965a41ea0c8 authored almost 11 years ago by Michael Droettboom <[email protected]>
Update command line help for -t

c7a89c270a7bee32c8d5def784a6ef5d2b534b98 authored almost 11 years ago by Michael Droettboom <[email protected]>
Clean up `setup.py test --help`

858e3f70f25fa1871f572ca7e02b6cdf44994bce authored almost 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #2044 from keflavich/no_internet_for_you

Block internet connection during testing if `--remote-data` not specified

0bb655ad4669df1c893d73cbfa297a0589a7346c authored almost 11 years ago by Michael Droettboom <[email protected]>
Ignore long int suffix in doctests, e.g. 1234L

1262628d041164d73f5d40ecbb04140c7231b2e4 authored almost 11 years ago by Michael Droettboom <[email protected]>
fix to a bad rebase: the long, ugly version was NOT meant to be included

42b1fc747d87869d55f9c955c1d3ba4a11b08516 authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
restructure of HTTP server & avoid port clashing

py2.6 compatibility this time

I need to be reaaaaaallly explicit for py2.6 [I could have used {...

a712d8d88acd6892f6354da049c0d9830714f97f authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
in principle, this should create and destroy an http server...

py3 compat

__future__ has to be at the top of the file

future expansion

867a6bcd23a5a6fd902b610dc5c8a625f61e4f3f authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
use six for HTTP servers

EVERYTHING IN PY3 IS DIFFERENT!!!!!

(fixed the six)^6

cleanup rearrange

954e62914e5803d112fb9f6b14a88d9d0acb565b authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
fixes for @eteq's comments. Restore internet if astropy.test() is run

bda876ce9717cc1c1db90ba7e8401ec0d8d25be1 authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
setup an http server so tests can be run...

tiny formatting change

1d115f610547c9a329a2fe6935fa593426928a0c authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
Moved test_socketblocker.py

9d3aac441929ac1cc99c3a0ec7a4fec64d0bec73 authored almost 11 years ago by Thomas Robitaille <[email protected]>
Use a decorator to simplify code

b2c6652c53266d0626df80bfad1fba1c545c385a authored almost 11 years ago by Thomas Robitaille <[email protected]>
clear out the loops; @astrofrog this is what I really intended with the

"generators"; I'll look for your decorator PR still though

ff40cc5ab9261671cdd18689ab3ca4f829061356 authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
removed repeat code. Turns out, there was a lot that wasn't repeated;

I think this could have been done more efficiently and cleanly

reorganization

close the open urls

fd02a91f9646e5662c35dbf47c3c4412ad9989f2 authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
fixed a docstring; I think test_invalid_location_download_noconnect is

redundant with test_socketblocker

no need for "if OK: pass"

df236f5d9618cac51b53b1e995149df1172af1dc authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
Merge branch 'misc/fix-numpy-ma-unicode-fill-value' into testing/py26-regex-fix

8e4186c13fa4775e7cf41f4608dea4fbc1e40a65 authored almost 11 years ago by Michael Droettboom <[email protected]>
Ignore differences between 32-bit and 64-bit ints

d461a90e5553c29c073b76d4f20c7576f81563d5 authored almost 11 years ago by Michael Droettboom <[email protected]>
Fixed regular expression for Python 2.6

Conflicts:
astropy/tests/pytest_plugins.py

c6e73e46982d1290cdee26791b6e679636e1277b authored almost 11 years ago by Thomas Robitaille <[email protected]>
Fixed regular expression for Python 2.6

Conflicts:
astropy/tests/pytest_plugins.py

f8e076253256900573fcf949e6db6d7141a453b7 authored almost 11 years ago by Thomas Robitaille <[email protected]>
no need to overload when it's defined in this package...

009dd062ca37d4b868e74a7d3ccc54ff334f96e0 authored almost 11 years ago by Adam Ginsburg (keflavich) <[email protected]>
Move to whitelisting

618589aeb89679c660f66e4b71423dbcbef93fab authored almost 11 years ago by Michael Droettboom <[email protected]>
Turn on unicode literal testing in select test files.

fd9ad2e1fea39377768786fd68758d63e28a3bea authored almost 11 years ago by Michael Droettboom <[email protected]>
First pass at resolving issues when testing with/without unicode_literals

873efe94040fdf25b99e34f5aa529c79a35e8874 authored almost 11 years ago by Michael Droettboom <[email protected]>
Test code with both unicode_literals and without

301f4cb8e1fd3dee2a004194149cbe7509edf58f authored almost 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #1973 from mdboom/misc/python3.4-compat

Omnibus Python 3.4 compatibility fixes

6f72237b8257ae4c9b7bcd31e501d06168d9d5e1 authored almost 11 years ago by Michael Droettboom <[email protected]>
don't run doctests with -t option

e1272d4119aeef4cea23f11f325810694d69d266 authored almost 11 years ago by Erik Tollerud <[email protected]>
Present a better warning about no .rst doctesting on Python 3

b6996cc3aaff4909777ba0f3761f3231f10d8961 authored almost 11 years ago by Michael Droettboom <[email protected]>
Ignore warning only on Python 3.4

2b09a2f0742f5ffafa009e64c9b03e426fd6d37d authored almost 11 years ago by Michael Droettboom <[email protected]>
Disable test that is non-deterministically failing.

54577124c46c82b9ea00d87e2df5192f52b7cd96 authored almost 11 years ago by Michael Droettboom <[email protected]>
Refactor warning management so that DeprecationWarnings are *always* on.

2c8da0417986f70bdc43049036b905c99b2a8e01 authored almost 11 years ago by Michael Droettboom <[email protected]>
Ignore a deprecation warning produced by py.test on Python 2.6

5fcfe1777d418fe0c8edea38288e806088ce00f8 authored almost 11 years ago by Michael Droettboom <[email protected]>
Warn, don't raise exception, if a package has no documentation section.

1058a92773eab835d6ab4b332aedfab23d0c1680 authored almost 11 years ago by Michael Droettboom <[email protected]>
Turn DeprecationWarnings into exceptions during testing.

4968408a0bb680ba8e2d855ef6727b7d5ad15431 authored almost 11 years ago by Michael Droettboom <[email protected]>
Test that deprecation exceptions are working differently, after

suggestion by @embray

ce0d86d95fae64927b0d9e65ae5621f2551024ce authored almost 11 years ago by Michael Droettboom <[email protected]>
Ignore Scipy-related deprecations.

aabcbb1ca4a578a72f1cae60371d9095431e98e2 authored almost 11 years ago by Michael Droettboom <[email protected]>
Fix deprecation handling self-test

c55ff14dcb9cc3e6d0015a999dd062c0c7d9d498 authored almost 11 years ago by Michael Droettboom <[email protected]>
Fix failures on Python 3.x

c2af5a77a5f4a58b5458318674d3e12bc24c3fc6 authored almost 11 years ago by Michael Droettboom <[email protected]>
Update to pytest 2.5.1

7f9ee818398567c19aee5c5ebb44618c15a80b6b authored almost 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #1855 from mdboom/testing/ignore-endianness

Ignore the endianess markers in Numpy dtype strings

2bc3fa33a8bd49b94a5b9a1f85810f29bd1773f3 authored about 11 years ago by Michael Droettboom <[email protected]>
Partial fix for #1849. Ignore the endianess markers in Numpy dtype strings.

e086b46f56bdb92bcbbf210be19e5ef7f5795e2f authored about 11 years ago by Michael Droettboom <[email protected]>
Renamed doctest +REMOTE option to +REMOTE_DATA

3e5c16c65b09430a3046c1ebe8dab9caadba916a authored about 11 years ago by Thomas Robitaille <[email protected]>
Add support for REMOTE flag to doctests.

84c36562f35985d5be601d658c48db4652a2b82c authored about 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #1809 from mdboom/vo/empty-fields

How to use ``astropy.io.votable`` to fix non standard-compliant tables?

0a544800d33463a29280cb7f55daad19cd765538 authored about 11 years ago by Michael Droettboom <[email protected]>
Band-aid cyclical import problems that prevent running packages that

define Table types on their own in the test framework.

5d9a7f1294c16955b08db269293debde332af9c1 authored about 11 years ago by Michael Droettboom <[email protected]>
Test doctests in .rst documentation

f17d53da50009c173364c64b2901b22b4a930dc0 authored about 11 years ago by Michael Droettboom <[email protected]>
Handle differences in Numpy dtype strings.

f6fd7252ddc641e68520dbd196ab8a5f4a0523b9 authored about 11 years ago by Michael Droettboom <[email protected]>
Fix doctests on Python 3.2

8e7cd8a777884d7a6b130918fe1ccef18c06cb9c authored about 11 years ago by Michael Droettboom <[email protected]>
Removes some more unused imports that were found with pylint. I don't *think* this breaks anything but I'll be interested to see what the CI systems say

692ef8800998b0f3eeef8bab684849df669f9b57 authored about 11 years ago by Erik M. Bray <[email protected]>
Phase 2: This moves inline imports of any standard library modules that are guaranteed to be imported during 'import astropy' regardless, and don't in general make sense to have as inline imports. Numpy is included in this as well, though there are a few places where Numpy shouldn't be imported (such as in modules that might be imported at setup-time when Numpy might not be installed). There are few other exceptions too, but not many.

df1ac0900474625d863499e22edb76a3e602f904 authored about 11 years ago by Erik M. Bray <[email protected]>
First round of relocating inline imports; this specifically focuses on modules that are already imported, in general, when you first start the Python interpreter. So in most cases there's not much point in burying them in function calls because those modules are guaranteed to always be imported to begin with.

6c79295a6c0e86a7f150a0f0e40c4f33ce6a80c3 authored about 11 years ago by Erik M. Bray <[email protected]>
Fixed a bug that was causing the tests not to run on Windows, specifically on Python < 2.7.3. This was due to a call to shlex.split which, according to the Python docs, did not support unicode strings prior to 2.7.3. We were encoding the string as utf8 for Python 2.6, but it really should have been Python < 2.7.3. Incidentally the Windows XP test machine is still running Python 2.7.2 which is how this came up. This isn't the first time that shlex.split call has caused problems either, leading me to wonder if we should be building up a string and then splitting it with shlex, rather than just adding the arguments to a list in the first place... But this fixes the issue for now (Windows has some other tests that seem to be failing, but at least with this fix the tests run)

d2d55825644cba5722f98ac94f19dacaec79296c authored about 11 years ago by Erik Bray <[email protected]>
Reset warnings and sys modules completely before and after logging tests to avoid side effects.

09eaa287928e03c32aaa54726c365e546a03d636 authored about 11 years ago by Thomas Robitaille <[email protected]>
Write Unicode guidelines. Add UNICODE_OUTPUT config option. Add test

helper to test against guidelines. Modify astropy.units.Unit to follow
those guidelines, and fix...

237f3cf68de1a66f517b22a9158db0e9b2794c59 authored about 11 years ago by Michael Droettboom <[email protected]>
Fixup arguments to assert_follows_unicode_guidelines

fa4d401f1c51cfca7a19ec63d3205469491b71c3 authored about 11 years ago by Michael Droettboom <[email protected]>
Test roundtrip of __repr__ as well.

3b0d1603a945c76ba87b42d57e83df18fa379b78 authored about 11 years ago by Michael Droettboom <[email protected]>
Add documentation for repr_namespace

1facf62ae688a36fdc79ea519256f72430eca871 authored about 11 years ago by Michael Droettboom <[email protected]>
Do all roundtrip testing or none.

0bdab998ee7f2572494ee8529cf711a51e568d21 authored about 11 years ago by Michael Droettboom <[email protected]>
Move sys.stdout.encoding to top of function

ce28f84b440a4946cdde6f22254c22650eccdd86 authored about 11 years ago by Erik Tollerud <[email protected]>
use or syntax instead of if statements

4f69c993c56cfb685ba876ca534c18e7b20b1c6e authored about 11 years ago by Erik Tollerud <[email protected]>
check for stdout.encoding before doing encoding in pytest

8c191793f3ff7d970c3fe72da671a089276fcc9e authored about 11 years ago by Erik Tollerud <[email protected]>
PEP8 fixes in astropy.tests

360fd5b42457eef55a2a95dcbeeeb53634b7e4a7 authored about 11 years ago by Thomas Robitaille <[email protected]>
Indent with 4 spaces.

082fe788a5aca19f0fa55935f9feded5b73d2d92 authored about 11 years ago by Christoph Deil <[email protected]>
For Python 2, fix the paths to use the source files, otherwise coverage report is full of temporary file paths.

d0dab0eb28097547e438e33feb084ce5ea3bf51b authored about 11 years ago by Thomas Robitaille <[email protected]>
Enable coverage testing and publishing to coveralls.io

779d305bc1e4b14560275a779a4886195147f277 authored about 11 years ago by Thomas Robitaille <[email protected]>
Merge pull request #1533 from astrofrog/fix-catch-warning-issue

Make sure the list of modules being iterated over cannot change during iteration

2d9affd54c2fcb32fbee03023d57382c9f04ed3b authored over 11 years ago by Michael Droettboom <[email protected]>
Make sure the list of modules being iterated over cannot change during the iteration.

ffbd13774af83106633b8b7b58f1a7b47efd3458 authored over 11 years ago by Thomas Robitaille <[email protected]>
Merge pull request #1531 from mdboom/tests/fix-pytest-on-py3.1

Restore compatibility with Python 3.1?

90812a308f7bcffa5e31ebf89367c4449c70af1a authored over 11 years ago by Thomas Robitaille <[email protected]>
Fix py.test 2.4.0 on Python 3.1

36993c98575443d9e8209f0c55ba92435df33594 authored over 11 years ago by Michael Droettboom <[email protected]>
Fix decoding of platform name.

95e09ca3f31197b389aa835d760c4f34fc213499 authored over 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #1510 from mdboom/tests/six

Update astropy.tests to use six instead of 2to3

57277ca35be601ae809ea2b73a0d258bfc406882 authored over 11 years ago by Michael Droettboom <[email protected]>
Remove debugging print statements

0a7b6cbc43f52158625d682c2e1bdbc35c3781fc authored over 11 years ago by Michael Droettboom <[email protected]>
Attempts to fix

1860c03161b0dc34e5461e16e86d040531861fb4 authored over 11 years ago by Michael Droettboom <[email protected]>
Moved content of utils.custom_warnings into utils.exceptions

485904c786c6e239767158579c0f9c6aebe8a513 authored over 11 years ago by Thomas Robitaille <[email protected]>
Fix distutils arguments

d6e86b199d283e43d45e8c6b4b8ae6f59f7125e9 authored over 11 years ago by Michael Droettboom <[email protected]>
Try to get more info out of Travis

6a59a764e5c0d197241e21f213eb51ca8f67a753 authored over 11 years ago by Michael Droettboom <[email protected]>
Update astropy.tests to use six instead of 2to3

88603255fd6b577a09bee0a0f8bf8dbc22ecf044 authored over 11 years ago by Michael Droettboom <[email protected]>
Fixed more failures. For some reason, we now need to use the ``msg`` attribute on ``LogRecord`` (which is according to the documentation, the normal way to do this - not sure how it worked before)

c430ca8405efb686ab21eed46c77739f14c8a0a5 authored over 11 years ago by Thomas Robitaille <[email protected]>
Added test to ensure warnings that don't sub-class from Astropy don't get interpreted by the logger.

789976e1c41794ab1f041ed6a29264ce9cc2330a authored over 11 years ago by Thomas Robitaille <[email protected]>
The reason for the change in API in the previous commit was that the formatter is responsible for creating the .message attribute but now we have turned off the file logger by default, the _stream_formatter is the only formatter left by default, and it wasn't creating .message.

48b09631a981fd120ed6bcfeebb1b780d9043c7b authored over 11 years ago by Thomas Robitaille <[email protected]>
Most warnings should actually be AstropyUserWarning (since default for warnings.warn is UserWarning)

dd441b052a0188824e49eeb53c1a65628167134b authored over 11 years ago by Thomas Robitaille <[email protected]>
Fixed more warnings

cf4f2050f9b5437b2266fe8456237b3fbf226acf authored over 11 years ago by Thomas Robitaille <[email protected]>
Ensure all custom warnings inherit from AstropyWarning instead of Warning

83a13dd430259d2afb06bd5dc3ed518f7b262487 authored over 11 years ago by Thomas Robitaille <[email protected]>
Merge pull request #1479 from mdboom/misc/remove-numpy-14

Warning if Numpy < 1.5 is used

2a721a84659b1dc4100c2aaa4f1eb4851080c3e1 authored over 11 years ago by Michael Droettboom <[email protected]>
Don't run all of the doctests twice

a17bc115196063909835926a009e504a30a51640 authored over 11 years ago by Michael Droettboom <[email protected]>
Make tests compatible with pytest 2.4.0

8b23f5b09154ab2a1ea14af353904b5313433394 authored over 11 years ago by Michael Droettboom <[email protected]>
Update the minimum Numpy version to 1.5.

Remove workarounds and "knownfail" tests for Numpy 1.4.

Add an explicit check for the correct v...

15953d8082c8bc9a945a0ab0ba10860c3644a41d authored over 11 years ago by Michael Droettboom <[email protected]>
Fixes the tests in question by not assuming that the default log level is INFO

b235ec6088999a4624f76f663e3fede77bf41c78 authored over 11 years ago by Erik M. Bray <[email protected]>
Restore the original log level after each of these tests; this still didn't solve the issue but it seems worthwhile

9a54a58ab4bf73b9191fc2e3165295e2a9cab53c authored over 11 years ago by Erik M. Bray <[email protected]>
Cleanup the top-level astropy namespace so it doesn't have any miscellaneous stuff

343030c5e5fc5da709054ca5299f865700302d73 authored over 11 years ago by Michael Droettboom <[email protected]>
Fix reporting of h5py version in the test runner for older versions of h5py.

1518d4da862d8ea91ccb2b49a10e9797b526659d authored over 11 years ago by Erik M. Bray <[email protected]>
Added some basic documentation on writing doctests to the Astropy developer

docs, mostly just linking to the doctest documentation in Python since it's
pretty okay. Also ren...

2a3aeee00cfe430958cd81c2b7e5848ea6532bc4 authored over 11 years ago by Erik M. Bray <[email protected]>
Extend the '__doctest_skip__' feature to allow skipping doctests in module docstrings.

7b284968c7ae5c297799850596b384748e4f5d28 authored over 11 years ago by Erik M. Bray <[email protected]>
Reorganized the doctest plus plugin into a class. Considering spinning this off into its own module.

92c7873a72e03b1ad443f00808ed22a2f7c21e56 authored over 11 years ago by Erik M. Bray <[email protected]>
Because putting addopts = --doctest-plus does not work when running py.test by itself (the new options aren't picked up soon enough), here instead is a setup.cfg option to enable doctest_plus as well.

7797ace65580be30a89fcec34f8d050847f7b778 authored over 11 years ago by Erik M. Bray <[email protected]>