Skip to content

Problem with #doctest: +FLOAT_CMP on Windows Py 2.6 ? #3853

@taldcroft

Description

@taldcroft

PR #3731 at ed8a3e1 failed only on Windows Py 2.6 with an exception in doc testing. There were no other test failures on any platform / configuration. I don't have a Windows platform to debug or try to reproduce.

Here is the log:

https://ci.appveyor.com/project/Astropy/astropy/build/1.0.1509/job/65hvtqa4x4h7m3b6

And the error at the end:

================================== FAILURES =================================== 
_________________________ [doctest] access_table.rst __________________________ 
_pytest.runner:137: in __init__ 
>   ??? 
_pytest.runner:124: in <lambda> 
>   ??? 
_pytest.main:161: in call_matching_hooks 
>   ??? 
_pytest.core:380: in pcall 
>   ??? 
_pytest.core:387: in _docall 
>   ??? 
_pytest.core:288: in execute 
>   ??? 
_pytest.runner:86: in pytest_runtest_call 
>   ??? 
astropy\tests\pytest_plugins.py:156: in runtest 
>           raise_on_error=True, verbose=False, encoding='utf-8') 
C:\conda\envs\test\lib\doctest.py:1973: in testfile 
>       runner.run(test) 
C:\conda\envs\test\lib\doctest.py:1736: in run 
>       r = DocTestRunner.run(self, test, compileflags, out, False) 
C:\conda\envs\test\lib\doctest.py:1391: in run 
>           return self.__run(test, compileflags, out) 
C:\conda\envs\test\lib\doctest.py:1269: in __run 
>               if check(example.want, got, self.optionflags): 
astropy\tests\output_checker.py:154: in check_output 
>           return self.normalize_floats(want, got, flags) 
astropy\tests\output_checker.py:117: in normalize_floats 
>           got = got % tuple(nw_) 
E           TypeError: a float is required 
 1 failed, 9031 passed, 111 skipped, 78 xfailed, 2 xpassed in 1118.24 seconds = 
Command exited with code 1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions