Minor fix to the error reporting when a ColDefs is instantiated with a sequence of non-Column objects

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2421 ed100bfc-0583-0410-97f2-c26b58777a21
Slight reorg of tests that will be useful going forward.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2430 ed100bfc-0583-0410-97f2-c26b58777a21
Fixes #8 from https://github.com/spacetelescope/PyFITS/issues/8 by ensuring that checksums are added on HDUs that did not already have them.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2431 ed100bfc-0583-0410-97f2-c26b58777a21
Fixed an issue I caught while updating the checksum tests, though it is not specifically related to checksums.  The issue is that if an image contains pseudo-unsigned integers, merely opening the file and then writing a copy of it will remove all the pseudo-unsigned scaling unexpectedly and clearly undesiredly.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2432 ed100bfc-0583-0410-97f2-c26b58777a21
Changelog entry for the fix in a2cdcef

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2433 ed100bfc-0583-0410-97f2-c26b58777a21
Improved several of the checksum tests to check that the checksums being written are *actually* correct (previously we used PyFITS itself to also verify the checksums, but this ensures that the checksums are also validated against CFITSIO (using precomputed values)).  Also fixed an issue found in the process where checksums were needlessly deleted from a header when validating them.  Some of the tests are still partially disabled due to bugs in checksum computation for binary tables and for compressed images, which still need to be addressed.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2434 ed100bfc-0583-0410-97f2-c26b58777a21
Fixed two bugs:

 1. Writing a binary table HDU with compression left the original HDU's
    data byteswapped (and hence mildly "corrupted").

 2. Compressed image HDUs did not correctly compute the ZHECKSUM and
    ZDATASUM header keywords for the checksums of the original image.

This involved a long-needed breaking up of
BinTableHDU._binary_table_byte_swap into the actual byte swapping
operations, and the parts that wrote to a file.  Now that method just
does byte-swapping, and the details of writing the raw data to a file
object (including the heap) are handled in
BinTableHDU._writedata_internal where it belongs.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2435 ed100bfc-0583-0410-97f2-c26b58777a21
Some Python 3 specific fixes, the need for which were brought to my attention by the updated tests in a565ebf26610e9eecd0a2603ac428f056ed7afbd

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2436 ed100bfc-0583-0410-97f2-c26b58777a21
Ack, removed duplicate changelog entry

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2439 ed100bfc-0583-0410-97f2-c26b58777a21
Fixed a regression introduced in ca3c3a7b56d7c82441e1071a658f3e0537a97d48 where looping over and deleting record-valued keyword cards could, in some cases, result in an exception depending on what order they were deleted in

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2440 ed100bfc-0583-0410-97f2-c26b58777a21
Finally fully deprecated pyfits.new_table in favor of more explicit class methods.  Added support for an ascii=True argument to ColDefs for cases where ambiguity can't otherwise be resolved.  Also fixed up a few minor formatting issues in the documentation that I found while updating the docs to discuss the new table creation methods.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2441 ed100bfc-0583-0410-97f2-c26b58777a21
Fixes the DeprecationWarning reported in https://github.com/spacetelescope/PyFITS/issues/45 The code here for mucking with urllib is, as far as I can tell, just a workaround for http://bugs.python.org/issue1566800 and shouldn't apply to newer Python versions anyways

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2442 ed100bfc-0583-0410-97f2-c26b58777a21
Fix regression on RVKCs that was introduced ca3c3a7b56d7c82441e1071a658f3e0537a97d48, along with some tests to ensure it doesn't happen again.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2450 ed100bfc-0583-0410-97f2-c26b58777a21
Added a missing changelog entry for the fix to https://github.com/spacetelescope/PyFITS/issues/8, which needs to be backported to the release branches

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2454 ed100bfc-0583-0410-97f2-c26b58777a21
replace distribute_setup with ez_setup

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2455 ed100bfc-0583-0410-97f2-c26b58777a21
Move all tests specifically related to VLAs to their own class, grouping them together.  This will make it easier to find them in the future.  This feature, being rather complicated, really deserves more thorough testing to begin with...

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2456 ed100bfc-0583-0410-97f2-c26b58777a21
An initial solution to the basic problem showing up in issue #47.  The more I look into this though the more apparent it becomes how naive the code is for managing the heap, especially when updating existing files.  I'm going to write some more tests to illustrate some of the problems I think are likely to occur with the current code and see if I can cobble together some slightly more sophisticated heap handling.  This might also fix some other VLA-related issues.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2457 ed100bfc-0583-0410-97f2-c26b58777a21
WIP: Switch over to using our own deprecation warning so that it will be more visible by users by default.  Currently this breaks many tests or at least causes a lot of extra output in the tests since there are tests of deprecated code that are causing this warning to be raised.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2458 ed100bfc-0583-0410-97f2-c26b58777a21
Add a  function so that they can be turned off easily.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2459 ed100bfc-0583-0410-97f2-c26b58777a21
Improve ignore_warnings so it can also be used as a method decorator.  Squelch deprecation warnings on various tests--for now I would rather leave these tests as-is, using the deprecated methods.  They are mostly older tests, and there is value in testing the deprecated intefaces so long as they're still kept around.

git-svn-id: http://svn6.assembla.com/svn/pyfits/trunk@2460 ed100bfc-0583-0410-97f2-c26b58777a21