This file should never have been here; 0c18067b4b362a76ca57fece782ba86c3328c91b is to blame for restoring it.
Add these two tests to __doctest_skip__.  The write one is hypothetically useful, but unfortunately it's not set up to write to a temporary file, so when running astropy.test() it leaves this table.dat in your cwd.  As there are many unit tests that test this functionality I think this one should be skipped for now or rewritten to write to a temp file (it might be worth setting up the Doctest scaffolding to always write files to a temp location...)
Merge pull request #1814 from embray/astropy.test-issues

Fix some minor issues with astropy.test()