Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antigravity tests #60310

Closed
ezio-melotti opened this issue Oct 1, 2012 · 10 comments
Closed

antigravity tests #60310

ezio-melotti opened this issue Oct 1, 2012 · 10 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@ezio-melotti
Copy link
Member

BPO 16106
Nosy @brettcannon, @birkenfeld, @jcea, @pitrou, @tiran, @ezio-melotti, @merwok, @voidspace, @cjerdonek, @mmaker
Files
  • antigravity_tests.diff: antigravity tests
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ezio-melotti'
    closed_at = <Date 2012-10-15.10:40:08.575>
    created_at = <Date 2012-10-01.23:36:41.135>
    labels = ['type-feature', 'library']
    title = 'antigravity tests'
    updated_at = <Date 2012-10-15.10:40:08.574>
    user = 'https://github.com/ezio-melotti'

    bugs.python.org fields:

    activity = <Date 2012-10-15.10:40:08.574>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2012-10-15.10:40:08.575>
    closer = 'ezio.melotti'
    components = ['Library (Lib)']
    creation = <Date 2012-10-01.23:36:41.135>
    creator = 'ezio.melotti'
    dependencies = []
    files = ['27379']
    hgrepos = []
    issue_num = 16106
    keywords = ['patch']
    message_count = 10.0
    messages = ['171762', '171775', '171777', '171797', '171802', '171805', '171823', '172809', '172915', '172956']
    nosy_count = 11.0
    nosy_names = ['brett.cannon', 'georg.brandl', 'jcea', 'pitrou', 'christian.heimes', 'ezio.melotti', 'eric.araujo', 'michael.foord', 'chris.jerdonek', 'maker', 'Ramchandra Apte']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue16106'
    versions = ['Python 3.4']

    @ezio-melotti
    Copy link
    Member Author

    The attached patch adds tests for antigravity.

    @ezio-melotti ezio-melotti self-assigned this Oct 1, 2012
    @ezio-melotti ezio-melotti added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Oct 1, 2012
    @birkenfeld
    Copy link
    Member

    Are you serious?

    @tiran
    Copy link
    Member

    tiran commented Oct 2, 2012

    Ezio is as serious as the antigravity module. *g*

    @brettcannon
    Copy link
    Member

    It's actually a nice example of using unittest.mock. =)

    @voidspace
    Copy link
    Contributor

    What happens if test_geohash runs first? It looks like test_antigravity will only pass if it is run first. You could remove the order dependence by ensuring antigravity is not in sys.modules. sys.modules.pop('antigravity', None)

    @cjerdonek
    Copy link
    Member

    Oh, this explains it. I was wondering why my browser was opening xkcd whenever I tried running doctest against all modules in the library.

    @pitrou
    Copy link
    Member

    pitrou commented Oct 2, 2012

    I'm not sure why we would test undocumented jokes...
    Do other Python implementations have to provide them too?

    @RamchandraApte
    Copy link
    Mannequin

    RamchandraApte mannequin commented Oct 13, 2012

    @antoine Aw.. no funny bone in you..

    @merwok
    Copy link
    Member

    merwok commented Oct 14, 2012

    Agreed with Antoine.

    @ezio-melotti
    Copy link
    Member Author

    The test could be made CPython-specific, but if you think it's not necessary I'll just close the issue. The main reason I wrote this was to experiment a bit with unittest.mock :)

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    8 participants