astropy/astropy — pull request #1531 by mdboom (2013-10-05 14:43:58+00:00)
Title: Restore compatibility with Python 3.1?

The tests are currently failing on Python 3.1:

```
Traceback (most recent call last):
File "setup.py", line 21, in
from astropy.setup_helpers import (register_commands, adjust_compiler,
File "/Users/Shared/Jenkins/Home/jobs/astropy-master-osx-10.8-multiconfig/workspace/NV/1.5.0/PV/3.1/astropy/setup_helpers.py", line 33, in
from .tests.helper import astropy_test
File "/Users/Shared/Jenkins/Home/jobs/astropy-master-osx-10.8-multiconfig/workspace/NV/1.5.0/PV/3.1/astropy/tests/__init__.py", line 10, in
from . import helper
File "/Users/Shared/Jenkins/Home/jobs/astropy-master-osx-10.8-multiconfig/workspace/NV/1.5.0/PV/3.1/astropy/tests/helper.py", line 59, in
pytest = importer.load_module(str('pytest'))
File "/Users/Shared/Jenkins/Home/jobs/astropy-master-osx-10.8-multiconfig/workspace/NV/1.5.0/PV/3.1/astropy/extern/pytest.py", line 3137, in load_module
do_exec(co, module.__dict__)
File "", line 1, in do_exec_def
File "pytest", line 14, in
File "/Users/Shared/Jenkins/Home/jobs/astropy-master-osx-10.8-multiconfig/workspace/NV/1.5.0/PV/3.1/astropy/extern/pytest.py", line 3137, in load_module
do_exec(co, module.__dict__)
File "", line 1, in do_exec_def
File "_pytest.config", line 376, in
File "py._std", line 15, in __getattr__
AttributeError: py.std: could not import argparse
```

Do we want to fix this, or drop support for Python 3.1?

cc @mdboom @embray @taldcroft @eteq