[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-08 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, it is simply okay to mention about ResourceWarning being displayed. I spent something thinking and going into mechanics of how it is displayed may be an overkill for that line in unittest.rst. I'll make the change and if you see any further informati

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a8a6dc7f478b by Senthil Kumaran in branch '3.3': Include the mention of ResourceWarning being displayed by default by the test runner. http://hg.python.org/cpython/rev/a8a6dc7f478b New changeset 7fc1e8095fb8 by Senthil Kumaran in branch 'default':

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: OK I see. I'll just use: python -W ignore:ResourceWarning -m unittest -- ___ Python tracker ___ _

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread R. David Murray
R. David Murray added the comment: This is intentional behavior. In the general case, resource warnings *are* bugs, since not all Python implementations do automatic cleanup. This behavior should be controllable (I'm not even sure they *can* be turned on if python is not compiled in debug mo

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna: Given the following file test_reswarn.py: import unittest class TestResourceWarning(unittest.TestCase): def test_it(self): self.assertIn("TestResourceWarning", open(__file__).read()) Running the test: $ python -m unittest te