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

namedtuple breaks refleak tests #46700

Closed
tiran opened this issue Mar 21, 2008 · 3 comments
Closed

namedtuple breaks refleak tests #46700

tiran opened this issue Mar 21, 2008 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@tiran
Copy link
Member

tiran commented Mar 21, 2008

BPO 2448
Nosy @rhettinger, @abalkin, @tiran

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/rhettinger'
closed_at = <Date 2008-05-08.20:43:27.718>
created_at = <Date 2008-03-21.18:54:50.156>
labels = ['tests', 'library', 'type-crash']
title = 'namedtuple breaks refleak tests'
updated_at = <Date 2008-05-08.20:43:27.717>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2008-05-08.20:43:27.717>
actor = 'christian.heimes'
assignee = 'rhettinger'
closed = True
closed_date = <Date 2008-05-08.20:43:27.718>
closer = 'christian.heimes'
components = ['Library (Lib)', 'Tests']
creation = <Date 2008-03-21.18:54:50.156>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 2448
keywords = []
message_count = 3.0
messages = ['64258', '64456', '66446']
nosy_count = 3.0
nosy_names = ['rhettinger', 'belopolsky', 'christian.heimes']
pr_nums = []
priority = 'high'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue2448'
versions = ['Python 2.6']

@tiran
Copy link
Member Author

tiran commented Mar 21, 2008

trunk$ ./python Lib/test/regrtest.py -ubsddb,network -R::    
test_collections
test_collections
beginning 9 repetitions
123456789
test test_collections failed -- Traceback (most recent call last):
  File "/home/heimes/dev/python/trunk/Lib/doctest.py", line 2131, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for collections.namedtuple
  File "/home/heimes/dev/python/trunk/Lib/collections.py", line 13, in
namedtuple

----------------------------------------------------------------------
File "/home/heimes/dev/python/trunk/Lib/collections.py", line 16, in
collections.namedtuple
Failed example:
    Point = namedtuple('Point', 'x y')
Exception raised:
    Traceback (most recent call last):
      File "/home/heimes/dev/python/trunk/Lib/doctest.py", line 1231, in
__run
        compileflags, 1) in test.globs
      File "<doctest collections.namedtuple[0]>", line 1, in <module>
        Point = namedtuple('Point', 'x y')
    NameError: name 'namedtuple' is not defined

@tiran tiran added stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump labels Mar 21, 2008
@abalkin
Copy link
Member

abalkin commented Mar 25, 2008

This is a duplicate of bpo-2223. (See msg63244.)

@tiran
Copy link
Member Author

tiran commented May 8, 2008

The tests are passing again.

@tiran tiran closed this as completed May 8, 2008
@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 tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

3 participants