Skip to content

Far future: get rid of doctest options inline #1253

Closed

Description

@amueller

In recent versions of nose, the options NORMALIZE_WHITESPACE and ELLIPSIS can be set globally. That would be awesome.
This is only available in nose 1.2, though. As removing the flags inline would break them on older versions, I'm not sure we can ever make the switch :-/

Should we try to monkey-patch?

Activity

  1. GaelVaroquaux commented on Oct 22, 2012

    @GaelVaroquaux
    Member

    Should we try to monkey-patch?

    I'd rather not :$.

    I thought that the standard Python doctest module has a way of
    registering options that we could use.

  2. amueller commented on Oct 22, 2012

    @amueller
    MemberAuthor

    i think the options are usually passed in the call, and we call using nose. it is possible to set options on file level, but i'd rather set them globally. i'll have another look.
    ?

    Gael Varoquaux [email protected] schrieb:

    Should we try to monkey-patch?

    I'd rather not :$.

    I thought that the standard Python doctest module has a way of
    registering options that we could use.


    Reply to this email directly or view it on GitHub:
    #1253 (comment)

    Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

  3. GaelVaroquaux commented on Oct 23, 2012

    @GaelVaroquaux
    Member

    i think the options are usually passed in the call, and we call using nose. it
    is possible to set options on file level, but i'd rather set them globally.
    i'll have another look.

    I had another close look, and I really didn't see a clean way to do this
    :(. I think that this is indeed going to be a 'far future' ticket.

  4. amueller commented on Oct 24, 2012

    @amueller
    MemberAuthor

    So should we switch to file-level at least? that should be possible (I hope).

  5. amueller commented on Dec 5, 2012

    @amueller
    MemberAuthor

    Far future is approximately never. closing.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions