This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cjw296
Recipients benjamin.peterson, cjw296
Date 2009-09-04.22:09:47
SpamBayes Score 1.9649282e-12
Marked as misclassified No
Message-id <1252102189.22.0.636640067574.issue6703@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm, I don't think tests will fail, however, there are cryptic docs for this...

http://docs.python.org/library/doctest.html#basic-api

I don't really get what module_relative is about and I've always run into the non-
cross-platform issue above when passing an absolute path to DocFileSuite while 
forgetting to specify module_relative=False.

The weird/frustrating thing is that the tests behave *just fine* on Windows with 
module_relative being the default of True and the absolute path being specified, so 
I'm not really sure what difference either the module_relative option or the check 
that the path doesn't start with a / mean...

The problem is that while the docs specify that paths must be /-separated, nothing 
in the code enforces this. 

So, with module_relative as True, the default:

- If you generate and pass an absolute path on Windows, it'll work just fine. 

- If you pass a '\\'-separated module-relative path, this will work just fine.
  (You'll end up with base/dir\path\you\supplied, but I doubt `open` will care about 
that.

With module_relative set to False, I'm not really sure what happens...

Anyone?
History
Date User Action Args
2009-09-04 22:09:49cjw296setrecipients: + cjw296, benjamin.peterson
2009-09-04 22:09:49cjw296setmessageid: <1252102189.22.0.636640067574.issue6703@psf.upfronthosting.co.za>
2009-09-04 22:09:47cjw296linkissue6703 messages
2009-09-04 22:09:47cjw296create