Ecosyste.ms: OpenCollective

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

github.com/astropy/pytest-openfiles

Pytest plugin to check for files left open at the end of a test run
https://github.com/astropy/pytest-openfiles

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]>
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]>
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]>
Ick. Remove a debug statement I totally left in by mistake.

b7decd94c2e6aa6cc65cc86d0c8973054d1d9004 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]>
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]>
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]>
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]>
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]>
Update command line help for -t

c7a89c270a7bee32c8d5def784a6ef5d2b534b98 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]>
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]>
Warn, don't raise exception, if a package has no documentation section.

1058a92773eab835d6ab4b332aedfab23d0c1680 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 a deprecation warning produced by py.test on Python 2.6

5fcfe1777d418fe0c8edea38288e806088ce00f8 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]>
Ignore Scipy-related deprecations.

aabcbb1ca4a578a72f1cae60371d9095431e98e2 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]>
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]>
Handle differences in Numpy dtype strings.

f6fd7252ddc641e68520dbd196ab8a5f4a0523b9 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]>
Fix doctests on Python 3.2

8e7cd8a777884d7a6b130918fe1ccef18c06cb9c authored about 11 years ago by Michael Droettboom <[email protected]>