Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

No description provided.

@serhiy-storchaka serhiy-storchaka added type-feature A feature request or enhancement needs backport to 2.7 tests Tests in the Lib/test dir labels Mar 23, 2017
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @tiran, @Yhg1s and @pjenvey to be potential reviewers.

Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

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

Given obj = 'abc'
Replacing self.assertTrue(obj is None, "%s" % obj)
producing False is not true : abc
with self.assertIsNone(obj)
producing 'abc' is not None
is a real improvement.

@terryjreedy
Copy link
Member

The details of the coverage 'failure' seem bogus. (I guess this has been noticed before.)

Copy link
Member

@zhangyangyu zhangyangyu left a comment

Choose a reason for hiding this comment

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

enhancement or bugfix? the labels?

@terryjreedy
Copy link
Member

I said on the equivalent bytes issue that I consider backports unnecessary since we are very unlikely to introduce a regression that does not affect default.

@serhiy-storchaka serhiy-storchaka merged commit f15c4d3 into python:master Mar 30, 2017
@serhiy-storchaka serhiy-storchaka deleted the test-warn-exc-asserts branch March 30, 2017 15:05
@serhiy-storchaka
Copy link
Member Author

I think that backporting will help to backport new tests.

@terryjreedy
Copy link
Member

New tests are sometimes not backported either. I don't know what criteria others use. For the present case, I believe some of the specific asserts are not in 2.7, and I think that 3.5 should already be security fix only. I might backport this just to 3.6, or I might decide that other issues are more pressing. Your decision.

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

Labels

tests Tests in the Lib/test dir type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants