Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Mark docstring tests as expected failure
Browse files Browse the repository at this point in the history
math module's docstring changed in Python 3.5. For now it's ok to mark
respective tests as failing
  • Loading branch information
abonie committed Aug 27, 2017
1 parent 4da26cf commit 82a515f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/modules/test_math.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import sys
from unittest import skipUnless
from unittest import skipUnless, expectedFailure

from ..utils import ModuleFunctionTestCase, TranspileTestCase


class MathTests(ModuleFunctionTestCase, TranspileTestCase):

not_implemented_versions = {
'test_docstrings': ['3.5', '3.6'],
}

substitutions = {
# A
'7.32747...e-15': [
Expand Down Expand Up @@ -171,6 +177,7 @@ def test_docstrings(self):
print(math.trunc.__doc__)
""")

@expectedFailure
@skipUnless(sys.version_info >= (3, 5), reason="Need CPython 3.5")
def test_docstrings_35(self):
self.assertCodeExecution("""
Expand All @@ -179,7 +186,6 @@ def test_docstrings_35(self):
print(math.isclose.__doc__)
""")


def test_big_log(self):
self.assertCodeExecution("""
import math
Expand Down

0 comments on commit 82a515f

Please sign in to comment.