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

Skip test_multiprocessing_forkserver() on hurd.

Hurd does not have functioning sem_open implementation, and therefore
multiprocessing.Pool() will...

0c7ed5efd396ceabf8a4a1c6615f63030504616a authored over 9 years ago by Ole Streicher <[email protected]>
Fix mention of unicode poly in assert_follows_unicode_guidelines

"Unicode Policy" -> "Unicode guidelines"

[ci skip]

11dfb680e168625b9bfb90d56417dae393acb6f2 authored over 9 years ago by Erik Tollerud <[email protected]>
Added regression test (also reorganized imports a tad)

49754703b917c1106576cfc5358dd34f70916852 authored over 9 years ago by Erik M. Bray <[email protected]>
Simplify (I think) the logic in check_internet_off a bit, and make sure it only really works on AF_INET(6) sockets and leaves AF_UNIX alone. Should fix #3713

3e5ba71e87efc0ad3e5dc0a74d3ce5befa3f5263 authored over 9 years ago by Erik M. Bray <[email protected]>
Add link to known issue; also slightly update the text of that issue.

[skip ci]

56ee352cd0f73b02eb4df9a90326abd3d1229193 authored over 9 years ago by Erik M. Bray <[email protected]>
Write a warning as part of the test summary when running the tests from IPython (and only when there are actually failures).

23da8ec54a698c6884c3c46ef0a2a030f0100dce authored over 9 years ago by Erik M. Bray <[email protected]>
Re-enable running astropy.test() in IPython until and unless a

reproducible issue with this can be found. [skip ci]

c9acd45d04206f599848c7572e5b7ab2069b2431 authored over 9 years ago by Erik M. Bray <[email protected]>
Merge pull request #3543 from bsipocz/test_add_version_to_header

Allow to print affiliated package version number in test header

4fa115137be5004f0d1ceb69e1caa8ae6b793082 authored over 9 years ago by Erik Bray <[email protected]>
Merge pull request #3593 from mhvk/numpy-dev-allclose-bugs

BUG Numpy dev version has different allclose

4dd5acf1869b89e9c12c3e40d3a644552a464311 authored over 9 years ago by Thomas Robitaille <[email protected]>
Probably making this hopelessly byzantine float parsing even harder to understand. But this fixes it to support float strings like 1e06 that have an exponent but no explicit decimal point.

582c230d1f147c5cd21ff489ea64a9df161a665f authored over 9 years ago by Erik M. Bray <[email protected]>
Ensure the helper scripts don't depend on new numpy behaviour

4f68336e3a33c012cfda310312cbca74903771a6 authored almost 10 years ago by Marten van Kerkwijk <[email protected]>
Make quantity_allclose and use it in cosmology tests

9b96fb6998347cf1eec3ce2acacf16c1b4c5ad7d authored almost 10 years ago by Marten van Kerkwijk <[email protected]>
Addressing comments

0017f1ef0472cd2c8d57075140777660b0192bae authored almost 10 years ago by Brigitta Sipocz <[email protected]>
Allow to print version of the package actually tested and not the version of astropy in the pytest header (as affiliated packages use astropy.tests.helper, too).

ff7cffae70416875b14d89f2e186d1410ac80464 authored almost 10 years ago by Brigitta Sipocz <[email protected]>
Ignore some DeprecationWarnings triggered by BeautifulSoup4 on Python 3.4

e631faeced62d15b6de9727c57644fa9b840e229 authored almost 10 years ago by Michael Droettboom <[email protected]>
Remove unused imports

2e9ff6a707dbe6be825d706466aa64c79953e638 authored almost 10 years ago by Brigitta Sipocz <[email protected]>
Fix spelling typos in all modules but io [skip ci]

4a6f4c06ff4e2ea08777c76fc396cec8db519832 authored almost 10 years ago by Brigitta Sipocz <[email protected]>
Merge pull request #3273 from astrofrog/quantity-test-helpers

Implemented Quantity-aware wrapper for assert_allclose

ebcd1564d4c4d0f952b467540d6bfaa08a168552 authored almost 10 years ago by Thomas Robitaille <[email protected]>
Use None for default atol

cba5a5cb7feee64b16ad18c3756d04ac1addec72 authored almost 10 years ago by Thomas Robitaille <[email protected]>
Implemented suggestions by @mhvk

cc8ada50d3fedf585f02a3ad0e3e8681d5dd4e95 authored almost 10 years ago by Thomas Robitaille <[email protected]>
Implemented Quantity-aware wrapper for assert_allclose

096648e92e113bf0f7144477f1f24ece3cc39642 authored almost 10 years ago by Thomas Robitaille <[email protected]>
Add FLOAT_CMP to doctest that was failing in Python 2.6, and make yet another tweak to the FLOAT_CMP output checker as to where in an output string it can expect to find a floating point number (I'm really surprised '=' wasn't already one of the delmiters for where a float could begin)

cc7f59b3ea0cef05466cad2c414feffa317bc279 authored almost 10 years ago by Erik M. Bray <[email protected]>
Minor fix to pytest header modules version check

22b8aeee26bee32f195815525f0f6c593d8d98e8 authored about 10 years ago by Christoph Deil <[email protected]>
Allow modules in pytest header to be customized

85caa664362c3004e01966c72dc4f4bd5e818a4d authored about 10 years ago by Thomas Robitaille <[email protected]>
Re-add cov report PY2 behavior and tone down wording against 2to3

This partially reverts commit 55c727db73e1b881d2b9fb80cae7ff93bf601b8d.

f2f978f52f753ec39547bf47635942638aa48528 authored about 10 years ago by Joseph Jon Booker <[email protected]>
Remove 2to3 from documentation

7ad901fb4057d9ea9a28ee97dab3ca23b5baf971 authored about 10 years ago by Joseph Jon Booker <[email protected]>
Python 3.x fix

6fe032c9f01b071d2dc5e176a19539ed9223955b authored about 10 years ago by Michael Droettboom <[email protected]>
psutil works on all major platforms, so no need to limit it.

6f7a7033d79e286eca8348a0995be65ce92833fa authored about 10 years ago by Michael Droettboom <[email protected]>
Minor code simplification

6324eaa1d79665d0edd7f348c269512ac898f312 authored about 10 years ago by Michael Droettboom <[email protected]>
Use psutil instead of lsof

6288afe6370fc72f254663ffead70f869ccbbf9e authored about 10 years ago by Joseph Jon Booker <[email protected]>
Update documentation and dependency checking for --open-files

60a8059da316ffd5eccb8b1e3b82305d0c9745aa authored about 10 years ago by Michael Droettboom <[email protected]>
Import importlib.machinery in open-files pytest plugin

853f5f9266ef120c8e94ab9debf61997db6b4638 authored about 10 years ago by Joseph Jon Booker <[email protected]>
Support Python 2.6's lack of importlib

This change is made on a distro without python2.6 support, so good luck

39fa702837dcafa6ca622bf0762db5877441940d authored about 10 years ago by Joseph Jon Booker <[email protected]>
Use importlib.machinery.all_suffixes if possible for open files test

382e326657c48a8f951a37ef35d4e79f2b5bfcf3 authored about 10 years ago by Joseph Jon Booker <[email protected]>
Remove files that have been moved to astropy-helpers

cad57ed3e11b5af269dc18dc3552efb3ac504dc8 authored about 10 years ago by Thomas Robitaille <[email protected]>
Merge pull request #1947 from ktchrn/pickle-tests-issue-1943

Issue 1943 - systematically testing pickling of astropy classes

2a74b7483161b6a3c699172949f1975d1eec0ef2 authored about 10 years ago by Erik Bray <[email protected]>
Removed references to coordinates.CartesianPoints; removed unnecessary whitespace

e6e1d012d950177a7bce65c6ce6dada0a4f565e9 authored about 10 years ago by ktchrn <[email protected]>
Merge pull request #3019 from astrofrog/repeat-option

Added a --repeat option for testing

f1d3be12e354094dbae9136e02eaf49193e4d13d authored about 10 years ago by Thomas Robitaille <[email protected]>
Moved xfail code to before failure-inducing code.

715978481e193392dc87107bc73bc13f7d5d8dd9 authored about 10 years ago by ktchrn <[email protected]>
Reapplying changes ignored during rebase

71b5bf63dd4cb92d103f88fabea6bfe2e52a945d authored about 10 years ago by ktchrn <[email protected]>
Allow opt-out of treating astropy deprecation warnings as exceptions

0b6ac799d52c47f8b77bbf5c7ef3943257a9de5e authored about 10 years ago by Thomas Robitaille <[email protected]>
Fix ``treat_deprecations_as_exceptions`` to recognize Astropy deprecation warnings.

0ad5ceb7eb1497a6f2d722c4c6ef0e61039705ad authored about 10 years ago by Thomas Robitaille <[email protected]>
Added repeat option to test()

550798ac898250bbbab81f04e8d60d7388d314af authored about 10 years ago by Thomas Robitaille <[email protected]>
Added a --repeat option for testing

29993d42f86fa2599c42c37cefa3135db2456483 authored about 10 years ago by Thomas Robitaille <[email protected]>
Fix the reporting of errors in files where TEST_UNICODE_LITERALS is

enabled.

d0e05afd8fa1139ce6f75e4cd2ef0e212f74fc89 authored about 10 years ago by Michael Droettboom <[email protected]>
This enhances the test_path open to the TestRunner to allow the path to be any .py or .rst file (as before) *or* any directory which might contain tests (including doctests under docs/)

65e207dbc2ce3d5fcc7548bc333f40116716ab1b authored over 10 years ago by Erik M. Bray <[email protected]>
Initial drop of support for Python 3.1 and 3.2, including removal of several hacks specifically for supporting those versions (this is probably not exhaustive, but the others can be removed when found). Drop 3.2 from travis builds and 3.1 and 3.2 from tox.ini.

9b34b08683e1a1fe82ec5dfdd0163f939c5e64f4 authored over 10 years ago by Erik M. Bray <[email protected]>
Tweaks to enable importing/running astropy out of a source checkout on Python 3

6a6233351e2b6a93a9102f946b8992da108d4c08 authored over 10 years ago by Erik M. Bray <[email protected]>
Catch exceptions in this loop; this makes me wonder now how much time it takes to display a warning. I wonder if we shouldn't be caching results here. But this fixes #2671 at least.

6893818c6dff3d2c41894762688d482a7a2ef741 authored over 10 years ago by Erik M. Bray <[email protected]>
Fix doctest-requires with multiple modules

894d585daf8a8cbe5fd678b2b89d28d56501593a authored over 10 years ago by Larry Bradley <[email protected]>
Raise exception when running tests inside IPython.

b39c2fa50dd3a697608561a133cf92d2d9af589e authored over 10 years ago by Michael Droettboom <[email protected]>
Fix a few more instances of the tests setting unicode environment variables. It's unclear to me how monkeypatch was causing issues with this, which I fear might be a subtle bug in pytest. But this gets the job done for now.

5eebf4bd1e344773c432e01bff09c73185c6bde8 authored over 10 years ago by Erik M. Bray <[email protected]>
Windows is a lot pickier (at least on Python 2) about unicode values in environment variable dicts passed to subprocess. Also make sure to use os.pathsep when setting PYTHONPATH

a84e47d417ec1d49dc829355635081295422bd53 authored over 10 years ago by Erik M. Bray <[email protected]>
The float comparison code was excluding the exponent and only comparing the mantissa, which seems odd to me especially in cases that are essentially zero. This includes the exponent in the values to be compared, for now.

622479969468cabb0102b40f835d6f4fe3ca22b8 authored over 10 years ago by Erik M. Bray <[email protected]>
Fix "'astropy' not loaded, cannot perform relative import" error in test

suite.

This fixes an occasional issue we've seen on Travis where one sees:
"'astropy' not loaded...

f6538f35eb172d6a24078e4748f40a6f4c951626 authored over 10 years ago by Michael Droettboom <[email protected]>
After getting some experience going through the docs and using this feature, renamed FLOAT_COMPARISON to just FLOAT_CMP for the terseness.

1f66e277ac1bf523e658378ec75702bbbc558b37 authored over 10 years ago by Erik M. Bray <[email protected]>
Simple proof of concept implementation. Still need to decide what to do about ellipses. Also note the warning that this could hide subtle differences in floating point representation that *could* be a bug, but also points out that there probably ought to be separate unit tests for issues like that.

4603e08afaa809ca00445f87d076b05763304b72 authored over 10 years ago by Erik M. Bray <[email protected]>
Rebased the branch this is on on master.

Added code from Sympy's output checker for handling floating point
values in output. This is sim...

015cc9c85d2bf0bb83b90579d6a74a9fd54cfaaa authored over 10 years ago by Erik M. Bray <[email protected]>
Added still more imprecision to this test since it was actually failing on Python 2.6

abc0514ee5a13d160105323e4e442c1578d85f01 authored over 10 years ago by Erik M. Bray <[email protected]>
The regexp that searches for floating point numbers has a list of characters that may indicate the 'beginning' of a float. I think this is a bit arbitrary in fragile, as evidenced by the fact that I had to add a left-parens to the list, as it can certainly precede a float. Might change this later, but it's okay for now I guess.

13bb436bef6b798a0727988182f05f69d152bf72 authored over 10 years ago by Erik M. Bray <[email protected]>
Ick. Remove a debug statement I totally left in by mistake.

b7decd94c2e6aa6cc65cc86d0c8973054d1d9004 authored over 10 years ago by Erik M. Bray <[email protected]>
More improvement to the range of contexts in which float values can appears, found through usage.

45fa81c82e6c61cf69737ccb7d0b6d1c8b079d67 authored over 10 years ago by Erik M. Bray <[email protected]>
Fix unicode encoding bug when editing the coveragerc file

148cf288f3f0d5ebba7b5e55b00e7b6444e5fc74 authored over 10 years ago by Michael Droettboom <[email protected]>
Use `py` module correctly.

dadd083cd5b86f72e7086f832fa8946c3c3f0f7a authored over 10 years ago by Michael Droettboom <[email protected]>
Fix #2502. Allow a way for affiliated packages to opt in to deprecations-as-exceptions.

be8e931d63a58350275d61898c692f88db2b8d10 authored over 10 years ago by Michael Droettboom <[email protected]>
Merge pull request #2568 from mdboom/testing/run-from-unicode-directory

Allow testing from a unicode path

b5e11f64b67e9c8c44e9ab461cf5d6aee944de75 authored over 10 years ago by Michael Droettboom <[email protected]>
Use -j option for parallel testing (fixes #2566)

ab64bf057ef0e507d341b663089c371b5744e38e authored over 10 years ago by Christoph Deil <[email protected]>
Merge pull request #2318 from embray/issue-2318

IOError from unit tests in disable_internet.py in localhost check

06fd204d685a6394a2804e39b5bcbd514785e678 authored over 10 years ago by Erik Bray <[email protected]>
Fix the proxy-disable to work on Python 2/3

48603c436d341cf67ea53b22b202fe724fc62d69 authored over 10 years ago by Erik M. Bray <[email protected]>
Disable use of proxy servers by urllib2 entirely when internet is disabled

46ed529926b4dc21256d8777b95056d4ee43cbac authored over 10 years ago by Erik M. Bray <[email protected]>
Python 3 fixes.

0814c6980c051fe15fbcfa2eee8121371b8e28b3 authored over 10 years ago by Michael Droettboom <[email protected]>
Allow testing from a unicode path

d29fc80c2db4e3b6e5fff5164cc077560a239361 authored over 10 years ago by Michael Droettboom <[email protected]>
Updated message following @eteq’s suggestion

8d93945feadbb7bd16ca942d51e39529f44e9109 authored over 10 years ago by Thomas Robitaille <[email protected]>
Added note that setup_helpers and version_helpers, and astropy_test class have been moved to astropy-helpers.

2492e2b817bb703507d30ba87e11ab8ca6f93337 authored over 10 years ago by Thomas Robitaille <[email protected]>
Merge pull request #2512 from eteq/fix-test-helper-unicode-error

Coerce pytest args to str to fix assertion error in pytest in all py2.x

4e7a264f4e2c5cad2df530a18d4501626cef1617 authored over 10 years ago by Erik Tollerud <[email protected]>
changed solution to use already-existing code for all py 2.x

b506aef2fd4bc60e10ada028ab90ba86a33b73e8 authored over 10 years ago by Erik Tollerud <[email protected]>
Have the doctest plus module skip/ignore any modules that raise an ImportError when trying to import it to look for tests. In particular this is needed to skip modules that require astropy_helpers, like some of the setup_package.py modules. This seems like reasonable-enough behavior anyway--if some actual problem is causing ImportErrors in some modules that will hopefully be picked up by the normal unit tests as well.

992eba89fe44e60514a6c8e4fef944620d012ad5 authored over 10 years ago by Erik M. Bray <[email protected]>
coerce pytest args to str to fix assertion error in pytest

ef82b666319732c3ffa4b3314a4a75304e46f646 authored over 10 years ago by Erik Tollerud <[email protected]>
Fix parallel argument.

5147d332540139f91c914df8f17f68a4f37568c7 authored over 10 years ago by Michael Droettboom <[email protected]>
Generate args as a list.

Fix #2488.

5bdf9f53b172eda2f5904fc9e9bd0845d4ed47d5 authored over 10 years ago by Michael Droettboom <[email protected]>
*Possible* fix for #2318. Not sure if this will fix @cdeil's specific issue, but it *did* fix the issue for me running on my laptop on the institute network.

ef074b6ca76b9b1b638ac5e14b13a70a227df60c authored over 10 years ago by Erik M. Bray <[email protected]>
Adds a kinda hacky way to skip doctests on Windows only; later a better way to do this would be to use markerlib or something like that. This test is not expected to pass on Windows due to unavailability of in-place sorting.

25e2f8db5171a242c9b4a5906a85cf9444d5ef4e authored over 10 years ago by Erik M. Bray <[email protected]>
Don't display configuration deprecation warning messages within

`setup.py test`. Improve warning messages about deprecated
configuration items.

454a991d95a6cec607629948e8c980ba273cc440 authored over 10 years ago by Michael Droettboom <[email protected]>
Fix for Python 3.x < 3.3 problem with non-atomic .pyc writing.

e1c37eedb9e447c59dc3351fb6ba43d034619e02 authored over 10 years ago by Michael Droettboom <[email protected]>
First pass at moving around all of the configuration options. Tests passing.

9c4d99df697b8458718ffaabe7fabaaadc130539 authored over 10 years ago by Michael Droettboom <[email protected]>
Fixes one of the remote-data tests mentioned in #2290. Adds a simple context manager for turn_internet_off/turn_internet_on so that this particular test can work regardless of whether --remote-data is in use.

ae7b5ebd5b81f2549c759f9fb20ceaa312b49990 authored over 10 years ago by Erik M. Bray <[email protected]>
Fix a few examples of astropy.tests.helper.raises mistakenly being used like py.test raises (the latter works a context manager, the former previously did not). But this also goes ahead an makes astropy.tests.helper.raises pass through to pytest.raises when used as a context manager. A little ambiguous, but at the same time makes this mistake less likely.

fe4e2da52e49fd7d929a98c28d4e821b7441b6a7 authored over 10 years ago by Erik M. Bray <[email protected]>
Ignore any user config file, even when running astropy.test()

36894f5c677876af3b60cdcb55fbd5891fd31c53 authored over 10 years ago by Michael Droettboom <[email protected]>
Merge pull request #2280 from mdboom/test/fix-t-to-docs

setup.py test -t option not working as expected for docs

e5cd26986198b6f29d93ec6ed5511ae55426b0ea authored over 10 years ago by Thomas Robitaille <[email protected]>
Merge pull request #2222 from embray/test-fixes

A few miscellanous tweaks to the test runs:

b26758fd66605bbe006e55682036361d0eb4b6ec authored over 10 years ago by Erik Bray <[email protected]>
Fix #2280. Make -t work for .rst files.

9f1700ed98d911d249b58b579be8ef0cf4f046b7 authored over 10 years ago by Michael Droettboom <[email protected]>
A few miscellanous tweaks to the test runs:

* Fix an issue where an error could occur when running setup.py test
with the -P option but t...

4c3f7aa62d1b68a99b11034c75a40050acd43200 authored over 10 years ago by Erik M. Bray <[email protected]>
Don't fail -P if docs missing

96fcc437cfefcadcc600ba994a0597c65cfddae7 authored almost 11 years ago by Michael Droettboom <[email protected]>
Don't generate .pyc files when running tests

a79995100464ed62a72d91f32ebd09eca1e03062 authored almost 11 years ago by Michael Droettboom <[email protected]>
Automate the package naming in coveragerc, so that affiliated packages don't have to do anything

f82d264d26d436daa907115f7125c5c30c1fb4f5 authored almost 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #2143 from mdboom/misc/version-standardization

Standardize how Python version checking is done.

858437721f501cb07e4b38497c6756e35537a3c4 authored almost 11 years ago by Michael Droettboom <[email protected]>
Merge pull request #2132 from mdboom/testing/coverage-in-affiliated-packages

Make coverage testing work for affiliated packages

0b561fe20f5585dc663992f367ad669762da4949 authored almost 11 years ago by Thomas Robitaille <[email protected]>
Raise exception if coverage is used in conjunction with parallel

3dd47c46a9f704de873581fd3dc4dbd2a3f391dd authored almost 11 years ago by Michael Droettboom <[email protected]>
Standardize how Python version checking is done.

d5f77c965ff03712c18e66f3ee829836186037c2 authored almost 11 years ago by Michael Droettboom <[email protected]>
Make `python setup.py test --coverage` work with affiliated packages

bd627743d80e45d732ff588b8b9f1643aed82ce1 authored almost 11 years ago by Michael Droettboom <[email protected]>