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

test_descr fails on win2k #40547

Closed
tebeka mannequin opened this issue Jul 12, 2004 · 6 comments
Closed

test_descr fails on win2k #40547

tebeka mannequin opened this issue Jul 12, 2004 · 6 comments
Labels
stdlib Python modules in the Lib dir

Comments

@tebeka
Copy link
Mannequin

tebeka mannequin commented Jul 12, 2004

BPO 989337
Nosy @rhettinger, @tebeka

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 = None
closed_at = <Date 2005-01-07.16:33:19.000>
created_at = <Date 2004-07-12.11:07:05.000>
labels = ['library']
title = 'test_descr fails on win2k'
updated_at = <Date 2005-01-07.16:33:19.000>
user = 'https://github.com/tebeka'

bugs.python.org fields:

activity = <Date 2005-01-07.16:33:19.000>
actor = 'quiver'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2004-07-12.11:07:05.000>
creator = 'tebeka'
dependencies = []
files = []
hgrepos = []
issue_num = 989337
keywords = []
message_count = 6.0
messages = ['21524', '21525', '21526', '21527', '21528', '21529']
nosy_count = 3.0
nosy_names = ['rhettinger', 'tebeka', 'quiver']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue989337'
versions = ['Python 2.4']

@tebeka
Copy link
Mannequin Author

tebeka mannequin commented Jul 12, 2004

>>> from test import test_descr
>>> test_descr.verbose = 1
>>> test_descr.test_main()
Testing weakref segfault...
Testing SF bug 551412 ...
Testing SF bug 570483...
Testing list operations...
checking a+b
checking b in a
checking b in a
checking a[b]
checking a[b:c]
checking a+=b
checking a*=b
checking len(a)
checking a*b
checking b*a
checking a[b]=c
checking a[b:c]=d
Testing dict operations...
checking cmp(a,b)
checking b in a
checking b in a
checking a[b]
checking len(a)
checking a[b]=c
Testing dict constructor ...
Testing dir() ...
Testing int operations...
checking a & b
checking a ^ b
checking a >> b
checking a - b
checking a ** b
checking a + b
checking divmod(a, b)
checking a << b
checking a * b
checking a / b
checking cmp(a, b)
checking a | b
checking a % b
checking int(a)
checking - a
checking ~ a
checking float(a)
checking hex(a)
checking + a
checking long(a)
checking abs(a)
checking oct(a)
Testing long operations...
checking a & b
checking a ^ b
checking a >> b
checking a - b
checking a ** b
checking a + b
checking divmod(a, b)
checking a << b
checking a * b
checking a / b
checking cmp(a, b)
checking a | b
checking a % b
checking int(a)
checking - a
checking ~ a
checking float(a)
checking hex(a)
checking + a
checking long(a)
checking abs(a)
checking oct(a)
Testing float operations...
checking a >= b
checking a - b
checking a > b
checking a ** b
checking a < b
checking a != b
checking a + b
checking a <= b
checking divmod(a, b)
checking a * b
checking a / b
checking a == b
checking a % b
checking int(a)
checking - a
checking float(a)
checking + a
checking long(a)
checking abs(a)
Testing complex operations...
checking a - b
checking a ** b
checking a != b
checking a + b
checking divmod(a, b)
checking a * b
checking a / b
checking a == b
checking a % b
checking - a
checking + a
checking abs(a)
Testing spamlist operations...
checking a+b
checking b in a
checking b in a
checking a[b]
checking a[b:c]
checking a+=b
checking a*=b
checking len(a)
checking a*b
checking b*a
checking a[b]=c
checking a[b:c]=d
Testing spamdict operations...
checking cmp(a,b)
checking b in a
checking b in a
checking a[b]
checking len(a)
checking repr(a)
checking a[b]=c
Testing Python subclass of dict...
pydict stress test ...
Testing Python subclass of list...
Testing __metaclass__...
Testing Python subclass of module...
Testing multiple inheritance...
Testing error messages for MRO disagreement...
Testing multiple inheritance special cases...
Testing ex5 from C3 switch discussion...
Testing MRO monotonicity...
Testing consistentcy with EPG...
Testing object class...
Testing __slots__...
Testing __dict__ and __weakref__ in __slots__...
Testing class attribute propagation...
Testing errors...
Testing class methods...
Testing C-based class methods...
Testing static methods...
Testing C-based static methods...
Testing classic classes...
Testing computed attributes...
Testing __new__ slot override...
Testing mro() and overriding it...
Testing operator overloading...
Testing methods...
Testing special operators...

Traceback (most recent call last):
  File "<pyshell#6>", line 1, in -toplevel-
    test_descr.test_main()
  File "C:\apps\Python24\lib\test\test_descr.py", line
4024, in test_main
    specials()
  File "C:\apps\Python24\lib\test\test_descr.py", line
1875, in specials
    print Letter('w')
PicklingError: Can't pickle <class
'test.test_descr.Letter'>: attribute lookup
test.test_descr.Letter failed
>>> 

This is Python 2.4a1 on win2k pro

@tebeka tebeka mannequin closed this as completed Jul 12, 2004
@tebeka tebeka mannequin added the stdlib Python modules in the Lib dir label Jul 12, 2004
@tebeka tebeka mannequin closed this as completed Jul 12, 2004
@tebeka tebeka mannequin added the stdlib Python modules in the Lib dir label Jul 12, 2004
@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

I cannot reproduce this on either WinME or WinXP.

@tebeka
Copy link
Mannequin Author

tebeka mannequin commented Jul 19, 2004

Logged In: YES
user_id=358087

Sorry, forgot that I've upgraded to winXP the other day.
This *is* winXP pro SP1

@tebeka
Copy link
Mannequin Author

tebeka mannequin commented Oct 17, 2004

Logged In: YES
user_id=358087

Still here in Python-2.4b1

@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

Do you still have a problem with this in Py2.4 final ?

@quiver
Copy link
Mannequin

quiver mannequin commented Jan 7, 2005

Logged In: YES
user_id=671362

Yes, I have(2.4, 2.4.1a0, 2.5a0).
Much shorter way is :

>>> from test.test_descr import specials
>>> specials()

Several things I noticed:

  • You need to run it from IDLE, not from the command line.
  • (Probably)OS independent.
    (I confirmed with both Windows and Linux)
  • error message is printed to the console, saying s.t. like:
    Cannot pickle: (16, ('CALL', ('stdout', 'write', ('w',), {})))
  • This message comes from idlelib.rpc.SocketIO::putmessage

Does this help?

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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
Projects
None yet
Development

No branches or pull requests

1 participant