Message111215
I don't normally run Windows, so it will take a little time
for me to set up a Windows build environment. However, I've
made a number of other improvements as a result of further testing
on Linux, and I've uploaded the improved patch as doctest-fixes6.diff.
When I apply this patch to a regular Python 2.7 installation on
Windows (Windows 2000 running under VirtualBox on Linux), the tests
pass (as well as on my Linux box when applied against the
release27-maint SVN branch).
Output from testing on Windows:
C:\Python27\Lib\test>python test_doctest.py
doctest (doctest) ... 66 tests with zero failures
doctest (test.test_doctest) ... 443 tests with zero failures
C:\Python27\Lib\test>python
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Hopefully the improved patch will test OK on your box as well. If
not, I'll work on testing it in a Windows build environment against
an SVN checkout.
Improvements in doctest-fixes6.diff:
- Uses with statements to guard all file reads (in earlier patches
writes were guarded but reads were not);
- Saves and restores sys.path the same way as test_importhooks;
- Checks for byte-compiled files in __pycache__ when deleting
temporary files (this was in the py3k patch already, but reading
PEP 3147 it looks like this feature may be backported to 2.7 as
well);
- Test setup/cleanup is now done in a TestFixture class, for clarity
and because it's easier that way to store the original sys.path
in the setup and restore it in the cleanup. |
|
Date |
User |
Action |
Args |
2010-07-22 21:07:43 | pdonis | set | recipients:
+ pdonis, belopolsky, BreamoreBoy |
2010-07-22 21:07:43 | pdonis | set | messageid: <1279832863.77.0.691238184848.issue1812@psf.upfronthosting.co.za> |
2010-07-22 21:07:40 | pdonis | link | issue1812 messages |
2010-07-22 21:07:40 | pdonis | create | |
|