-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
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.
Reactions are currently unavailable