[issue11049] add tests for test.support

2013-01-25 Thread Brett Cannon
Brett Cannon added the comment: Can this be closed, David? -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___

[issue11049] add tests for test.support

2013-01-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___

[issue11049] add tests for test.support

2013-01-25 Thread R. David Murray
R. David Murray added the comment: Sure. It doesn't seem likely that I'll get back to it any time soon, and if I do I can open a new issue. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11049] add tests for test.support

2011-08-03 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Eli, test_support is now completing on my system without errors. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___

[issue11049] add tests for test.support

2011-08-03 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Vinay, great news. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___

[issue11049] add tests for test.support

2011-08-02 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: test_forget still doesn't work using my installed Python: test test_support failed -- Traceback (most recent call last): File /usr/local/lib/python3.3/test/test_support.py, line 62, in test_forget mod = __import__(TESTFN) ImportError:

[issue11049] add tests for test.support

2011-08-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 07d94cf3521e by Eli Bendersky in branch 'default': Issue #11049: fix test_forget on installed Python - add os.curdir to sys.path http://hg.python.org/cpython/rev/07d94cf3521e --

[issue11049] add tests for test.support

2011-08-02 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Vinay, I can't reproduce your problem here (tried installing Python and running from there), but I suspect it's a sys.path issue (you don't have os.curdir on it, I do). Please let me know if it works now. --

[issue11049] add tests for test.support

2011-08-01 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: test_support fails in my environment, only when run from an installed Python, due to permissions issues: == ERROR: test_forget (test.test_support.TestSupport)

[issue11049] add tests for test.support

2011-08-01 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1a978892a105 by Eli Bendersky in branch 'default': Issue #11049: fix test_forget to work on installed Python, by using a temporary module for import/forget http://hg.python.org/cpython/rev/1a978892a105 --

[issue11049] add tests for test.support

2011-07-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list

[issue11049] add tests for test.support

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0f09b7f90060 by Eli Bendersky in branch 'default': Issue #11049: added test_support to regrtest.STDTESTS list http://hg.python.org/cpython/rev/0f09b7f90060 -- ___ Python

[issue11049] add tests for test.support

2011-07-25 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Fri, Jul 22, 2011 at 22:47, Eli Bendersky rep...@bugs.python.org wrote: Eli Bendersky eli...@gmail.com added the comment: Brett, what do you mean by listed as an essential test in regrtest. The regrtest.STDTESTS list? Yes --

[issue11049] add tests for test.support

2011-07-23 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Several buildbot are failing after the commit: == FAIL: test_get_original_stdout (test.test_support.TestSupport)

[issue11049] add tests for test.support

2011-07-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0018a28583f4 by Eli Bendersky in branch 'default': Issue #11049: skip a test that fails on some buildbots http://hg.python.org/cpython/rev/0018a28583f4 -- ___ Python

[issue11049] add tests for test.support

2011-07-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: OK, the bots are green again after the last push. Sorry about that, folks. I tested this on two different machines (Ubuntu Win XP) before pushing the original commit. -- ___ Python tracker

[issue11049] add tests for test.support

2011-07-22 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Alright, since *some* tests are better than no tests at all, I will try to combine the patches currently attached to the issue, port them to the Hg repo and commit. -- ___ Python tracker

[issue11049] add tests for test.support

2011-07-22 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Brett, what do you mean by listed as an essential test in regrtest. The regrtest.STDTESTS list? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049

[issue11049] add tests for test.support

2011-07-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset be558ad15789 by Eli Bendersky in branch 'default': Issue #11049: adding some tests to test.support http://hg.python.org/cpython/rev/be558ad15789 -- nosy: +python-dev ___

[issue11049] add tests for test.support

2011-07-22 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: This changeset incorporates Giampaolo's patch with a minor fix in `test.support.python_is_optimized` (which returned '' for False sometimes). -- ___ Python tracker rep...@bugs.python.org

[issue11049] add tests for test.support

2011-05-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Any news on this? Can you check that your patches apply for latest trunk and commit them? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049

[issue11049] add tests for test.support

2011-05-04 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list

[issue11049] add tests for test.support

2011-03-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Gah. I always check to see if the patch uploaded before I delete my working copy, but this time I didn't :( :( I guess I'll come back to this during the sprints. -- ___ Python tracker

[issue11049] add tests for test.support

2011-03-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___

[issue11049] add tests for test.support

2011-02-22 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Can we commit this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___

[issue11049] add tests for test.support

2011-02-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I agree that the docs for import_fresh_module are confusing. The code says there are sanity checks in test_heapq and test_warnings, so that code could presumably be used as a model for someone to develop a more complete stand-alone

[issue11049] add tests for test.support

2011-02-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___

[issue11049] add tests for test.support

2011-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: test_warnings actually includes sanity checks for import_fresh_module - they could be adapted into a separate unit test easily enough. -- ___ Python tracker rep...@bugs.python.org

[issue11049] add tests for test.support

2011-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +os.mkdir(os.path.join(TESTFN, TESTFN)) Please don't. This will break the day TESTFN becomes a non-trivial path. +def test_make_bad_fd(self): +fd = support.make_bad_fd() +self.assertRaises(OSError, os.write, fd, bfoo)

[issue11049] add tests for test.support

2011-01-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: * class TestCase(unittest.TestCase): - why not give the test class a more useful name? done * import_fresh_module is tested similarly to import_module - can't a test be added that it indeed performs its special sauce? Even by

[issue11049] add tests for test.support

2011-01-28 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: It seems a little negligent that test.support has no tests. The test.test_support name is available in py3k and backporting issues to 2.7 shouldn't be a problem (rare chance something does happen it can be handling manually). There doesn't

[issue11049] add tests for test.support

2011-01-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I should note that I am not suggesting that test.support suddenly be considered a module with a stable API that the public can use. Simply that we take the proper measures to make sure the code in there does what is expected. --

[issue11049] add tests for test.support

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Attached is a patch which tests about half the API. Certain functions are not documented and/or it's not clear what they do, for others it seems unlikely they are actually used nowadays (although I haven't checked). Also, it probably

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Giampaolo, FYI I'm also working (issue 11015) in parallel on documenting some of the undocumented functions in Doc/library/test.rst that look useful to me. I think we can collaborate here to make sure they're both documented and tested. I'll

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___ ___ Python-bugs-list mailing

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- stage: needs patch - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11049 ___

[issue11049] add tests for test.support

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Giampaolo, The patch looks good. Some minor comments below: * class TestCase(unittest.TestCase): - why not give the test class a more useful name? * import_fresh_module is tested similarly to import_module - can't a test be added that it