Skip to content

Test failure in docs/io/ascii/index.rst #9796

Closed

Description

@saimn

From #9711: One failure in the 32bits build : https://circleci.com/gh/astropy/astropy/56597

______________________ [doctest] docs/io/ascii/index.rst _______________________
[gw3] linux -- Python 3.7.5 /opt/python/cp37-cp37m/bin/python
148   Writing Data Tables as Formatted ASCII Tables
149 
150 The following writes a table as a simple space-delimited file::
151 
152   >>> import numpy as np
153   >>> from astropy.table import Table, Column, MaskedColumn
154   >>> x = np.array([1, 2, 3])
155   >>> y = x ** 2
156   >>> data = Table([x, y], names=['x', 'y'])
157   >>> ascii.write(data, 'values.dat')
UNEXPECTED EXCEPTION: AstropyDeprecationWarning("values.dat already exists. Automatically overwriting ASCII files is deprecated. Use the argument 'overwrite=True' in the future.")
Traceback (most recent call last):

  File "/opt/python/cp37-cp37m/lib/python3.7/doctest.py", line 1329, in __run
    compileflags, 1), test.globs)

  File "<doctest index.rst[13]>", line 1, in <module>

  File "/tmp/astropy-test-ur8e8wgu/lib/python3.7/site-packages/astropy/io/ascii/ui.py", line 750, in write
    output), AstropyDeprecationWarning)

astropy.utils.exceptions.AstropyDeprecationWarning: values.dat already exists. Automatically overwriting ASCII files is deprecated. Use the argument 'overwrite=True' in the future.

I think it happens because this is the parallelized build, and docs/io/ascii/write.rst also writes a file with the same name (but with overwrite=True). And since tests are run in parallel I guess that write.rst was run before index.rst.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions