Skip to content

Use a simple +- ASCII string in the string representation of pytest.approx In Python 2#2113

Merged
RonnyPfannschmidt merged 1 commit intopytest-dev:masterfrom
nicoddemus:approx-repr-unicode
Dec 5, 2016
Merged

Use a simple +- ASCII string in the string representation of pytest.approx In Python 2#2113
RonnyPfannschmidt merged 1 commit intopytest-dev:masterfrom
nicoddemus:approx-repr-unicode

Conversation

@nicoddemus
Copy link
Copy Markdown
Member

Fix #2111

@decentral1se
Copy link
Copy Markdown
Contributor

👍

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0008%) to 92.832% when pulling 0f7f33d on nicoddemus:approx-repr-unicode into 5365f7c on pytest-dev:master.

Comment thread testing/python/approx.py
""")
expected = '4.0e-06'
# for some reason in Python 2.6 it is not displaying the tolerance representation correctly
if sys.version_info[:2] == (2, 6):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange, no idea why is that.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0008%) to 92.832% when pulling a5dd73f on nicoddemus:approx-repr-unicode into 5365f7c on pytest-dev:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0008%) to 92.832% when pulling 57c4489 on nicoddemus:approx-repr-unicode into 5365f7c on pytest-dev:master.

@RonnyPfannschmidt RonnyPfannschmidt merged commit 3c81f83 into pytest-dev:master Dec 5, 2016
@nicoddemus nicoddemus deleted the approx-repr-unicode branch December 5, 2016 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants