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

Remove unused imports

7049d6594c09643737fd4e6b74d558b0943e520b authored almost 9 years ago by Thomas Robitaille <[email protected]>
Remove more Python 2.6 compatibility patches

37e351855afb9d75ce51d5a6734b005e71ff1a7b authored almost 9 years ago by Thomas Robitaille <[email protected]>
Merge pull request #4490 from astrofrog/more-pep8-checking

Include two new warnings/errors in PEP8 checks

76e3f38db59abab01a87d0585c14daf204ed16b6 authored almost 9 years ago by Marten van Kerkwijk <[email protected]>
Fix PEP8 failures

010dc8ee359c366450b611635c22a9dd672eb697 authored almost 9 years ago by Thomas Robitaille <[email protected]>
Remove reference to gzip compat module in test_imports

29960b9365463af3c5b85dbf9c55d772c12dc7ea authored almost 9 years ago by Thomas Robitaille <[email protected]>
Merge pull request #4463 from astrofrog/remove-fractions-compat

Remove fractions compatibility layer since we now no longer support Python 2.6

0c16a28226ed9539ecec59d3fd6b013c535ae8a3 authored almost 9 years ago by Marten van Kerkwijk <[email protected]>
Merge pull request #4478 from astrofrog/fix-missing-import

Fix missing import in astropy.tests.runner

436dd807fb21300a3c8cf937210e05533349fbf6 authored almost 9 years ago by Thomas Robitaille <[email protected]>
Remove reference to odict compat module in test_imports

487110ef4127b8faae54b40efb8c39b028a8f2ec authored almost 9 years ago by Thomas Robitaille <[email protected]>
Fix missing import

259b61d6c19b557c8e4ae12bb9bf8bbc33d1e9ec authored almost 9 years ago by Thomas Robitaille <[email protected]>
Remove fractions compatibility layer since we now no longer support Python 2.6

c928d52ebcb1f0a2eae940bd7942336e32a84527 authored almost 9 years ago by Thomas Robitaille <[email protected]>
Remove odict compatibility layer since we now no longer support Python 2.6

c38563b3119bf06efdba4302fb86d46e44a7d26a authored almost 9 years ago by Thomas Robitaille <[email protected]>
Fix case where encoding is defined but set to None

4e192f0068dd6e63588c7556856a863bf7fa778a authored almost 9 years ago by Thomas Robitaille <[email protected]>
Use try...except for getting encoding because in recent versions of pytest, stdout is replaced by ChannelFileWrite which doesn’t have an encoding attribute.

f07237bdfc52a1bb2800d5cf6b3e968d9fc2ee06 authored almost 9 years ago by Thomas Robitaille <[email protected]>
Fixes to pytest plugins for pytest >= 2.8.0

dfc64ec218fda32f3a7d58d26f41e01b3c7d60dc authored almost 9 years ago by Thomas Robitaille <[email protected]>
Add pandas version to the test report while we're at it

bae3beab632ac4dcd1399bb663510e537e972819 authored about 9 years ago by Erik M. Bray <[email protected]>
Also ignore DeprecationWarnings coming from third-party modules when generating the test report header--would rather this not bring down the whole test

e08ac9603f76bf361e55369480a19fdf868bc211 authored about 9 years ago by Erik M. Bray <[email protected]>
Move ignore_warnings decorator/context manager to astropy.tests.helper so that it can be used by more than just the FITS tests.

23d99612dc50292427d1af75b68d483e59660187 authored about 9 years ago by Erik M. Bray <[email protected]>
Adds Python version specific IGNORE_OUTPUT_2 and IGNORE_OUTPUT_3--an unfortunately blunt-force tool get some of the table tests 'passing' on Python 3, but easier than any other option.

1710943acd9456da4f32caf982788ea623766f9d authored about 9 years ago by Erik M. Bray <[email protected]>
Added new IGNORE_OUTPUT flags for doctests. This is useful in cases where we want the doctest to *run* (maybe later doctests on the same page depend on this code running), but we don't care *exactly* what the output is (maybe the output differs slightly between platforms, but in ways we aren't concerned about testing)

8eab848c07637bbc11573ab6ef8a118a41fa1e88 authored about 9 years ago by Erik M. Bray <[email protected]>
This actually fully enables running the doctests on Python 3

b10f32f3ff380a207e49fe5598b3452625580abd authored about 9 years ago by Erik M. Bray <[email protected]>
Slight improvements to the +FLOAT_CMP implementation, including using np.allclose for the numeric comparison (this change has been on the backburner for a while)

46c658f235703eee18e9208122a727dc3b80ed42 authored about 9 years ago by Erik M. Bray <[email protected]>
Use string in skipif() for pytest 2.3 compatiblity

ba3361dc1e561383db6672b8b9bf032091d3b6fc authored about 9 years ago by Orion Poplawski <[email protected]>
Import TestRunner into astropy.tests.helper for backward-compatibility

ee290293997f3e10acb029f2fd014a0b108ab964 authored over 9 years ago by Thomas Robitaille <[email protected]>
Merge pull request #4020 from embray/testing/test-runner-refactor

Testing/test runner refactor

c3c7c99c6e87ffcfc83cfa8f8b90c9c54a0c2e8d authored over 9 years ago by Erik Bray <[email protected]>
Merge pull request #4200 from bsipocz/test_add_date_to_header

Adding date to test header

b070c1d5d1df4173b40e9154dfca39c967f67391 authored over 9 years ago by Erik Bray <[email protected]>
Incorporate the changes from https://github.com/astropy/astropy-helpers/pull/188 and https://github.com/astropy/astropy-helpers/pull/194 into astropy's copy of the AstropyTest command.

42a2bec293f6fee52330c00d5e70bfa8313492ff authored over 9 years ago by Erik M. Bray <[email protected]>
Fixed indentation

b8c84ca6df51955ed88c4fda50d1bc7e54e43b1a authored over 9 years ago by Erik M. Bray <[email protected]>
Updated astropy-helpers again to the latest master, incorporating several previous fixes from other PRs. Also updated astropy.tests.command to incorporate the changes from astropy/astropy-helpers#190

afc4cd470ea31841f71823a2650a63dad790dd97 authored over 9 years ago by Erik M. Bray <[email protected]>
Fix for Python 2--functions don't have an __annotations__ attribute (and in any case the function we're wrapping doesn't *have* any annotations in the first place).

26ae95da3ee679e6977d565babd5130f1d39cb68 authored over 9 years ago by Erik M. Bray <[email protected]>
Some refactoring of astropy.tests and astropy.__init__. A few things

going on here:

1) The TestRunner class has been moved out of astropy.tests.helper
into its own m...

36ae6c1027c7e8b6d42ab6d35e0206a458095530 authored over 9 years ago by Erik M. Bray <[email protected]>
Strip rootdir from path entries in 'Running tests in...' line of pytest report

f21ef00ba58d2d5d5fa1a45d2180d706d569147b authored over 9 years ago by Erik M. Bray <[email protected]>
Update to astropy_helpers that should fix #4164 on OSX. The change to the test runner to make sure its base path is always the absolute path improves consistency of behavior between Python 2 and Python 3, where __path__ is a relative path in the former, and an absolute path in the latter.

72b7ca43ed4da3d3e7c54bfa982f0ffae82f423a authored over 9 years ago by Erik M. Bray <[email protected]>
Adding date to test header

48a8f0858dad1d26bfeec13cfbd0bbc2983c82a4 authored over 9 years ago by Brigitta Sipocz <[email protected]>
Adapt tests helper to Coverage 4.0 (ref #4175).

635aa8af6d5f941984f76fcb3b2d6744a17f0115 authored over 9 years ago by Simon Conseil <[email protected]>
Fix broken link to pytest.raises

8463de7440b3fe487653bf8a0097455f49ab2485 authored over 9 years ago by Michael Droettboom <[email protected]>
Disable a logger test on Python 3.5

dc86b27e0d5a338ac242759dd47e06d9dae288c7 authored over 9 years ago by Michael Droettboom <[email protected]>
Ignore DeprecationWarning in py.test

d698cc943c20416008914b3cca84d5b9facc8565 authored over 9 years ago by Michael Droettboom <[email protected]>
Register the remote_data marker

This is now required in py.test 2.7.3

267e9dd60fa48551dfc821f3b2def0d20043b746 authored over 9 years ago by Michael Droettboom <[email protected]>
Update for Python 3.5

8a7beddfc4160aa206c9798877456c44040fb0b0 authored over 9 years ago by Michael Droettboom <[email protected]>
Remove erfa_generator.py from average analysis

857231cb2a9e58ea82ec4233f6ff64cf82a6e221 authored over 9 years ago by Julien Woillez <[email protected]>
Fixed a bug in resolve_name where if you pass fromlist=[''] in when importing a top-level module (like 'numpy') things could go seriously awry with the import system (this itself is a bug in Python 2).

d0562f7fb6eaa0753e0c8c7512fc8d06d8d29196 authored over 9 years ago by Erik M. Bray <[email protected]>
Add link in test and a changelog entry [skip ci]

1a187603d77cd9649f1588b5db98d339fda66716 authored over 9 years ago by Erik M. Bray <[email protected]>
Fixes long-standing bug in exception hook on Python 3 (use of 'unicode' builtin in the narrow case of message-less exceptions)

f95f4bcbd1dfacdb70aa0b4cfa543ae3604afea8 authored over 9 years ago by Erik M. Bray <[email protected]>
Add combination decorator / context managers that can be used to temporarily set the locations of the Astropy configuration and cache directories, as well as restore them to their default (user-specific) locations.

070cd96f4f277c45cb809877a0b7a1b7a84f9968 authored over 9 years ago by Erik M. Bray <[email protected]>
Add the ability to set custom locations for the astropy config and cache dirs used when running tests. Any use of set_config/cache_dir for individual tests will still override this, but this also allows setting a custom cache location for all test runs.

b927e17547503014a11a245a5611128fac89fe5d authored over 9 years ago by Erik M. Bray <[email protected]>
Add a new config option for py.test to ignore certain files when testing with the --open-files option

5231a7ca23dd3728d1b1292a8aa01e0da0121f9b authored over 9 years ago by Erik M. Bray <[email protected]>
Make astropy.tests.helper part of the public API

4312e6df63256d60c8db636a364372d653e1ecc1 authored over 9 years ago by Erik Tollerud <[email protected]>
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 almost 10 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 almost 10 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 almost 10 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 about 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 about 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]>
Update documentation and dependency checking for --open-files

60a8059da316ffd5eccb8b1e3b82305d0c9745aa 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]>
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 over 10 years ago by Thomas Robitaille <[email protected]>
Fix the reporting of errors in files where TEST_UNICODE_LITERALS is

enabled.

d0e05afd8fa1139ce6f75e4cd2ef0e212f74fc89 authored over 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]>