[issue34609] Idle Unitest

2018-09-22 Thread Tal Einat


Change by Tal Einat :


--
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34609] Idle Unitest

2018-09-10 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Following up, I was able to recreate under 3.8 using pdb in powershell, so it's 
not just in IDLE.

Traceback (most recent call last):
  File "N:\projects\cpython\lib\pdb.py", line 1697, in main
pdb._runscript(mainpyfile)
  File "N:\projects\cpython\lib\pdb.py", line 1566, in _runscript
self.run(statement)
  File "N:\projects\cpython\lib\bdb.py", line 586, in run
exec(cmd, globals, locals)
  File "", line 1, in 
  File "c:\users\onedrive\desktop\step.py", line 1, in 
import unittest
  File "", line 980, in _find_and_load
  File "", line 149, in __enter__
  File "", line 101, in acquire
KeyError: 14104

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34609] Idle Unitest

2018-09-07 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Just to help track this down, 'import math' does not cause the trace, but 
'import email' does.  It seems to be modules that have a loader function.  My 
guess (but I haven't tried it yet) is that this would happen if stepping 
through pdb outside of IDLE too.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34609] Idle Unitest

2018-09-07 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

I have Python 3.6.5 on Ubuntu 18.04.  Initially, I was unable to recreate the 
issue.  However, issue33065 from 4 months ago has the same trace (except on a 
different import), so I tried stepping through debug using the minimal example 
that Terry gave and successfully reproduced the trace.

I then tried a new build of 3.8 on Ubuntu and was also able to reproduce by 
using 'step' while in debug.

I also was able to recreate using 'step' under 3.6.3 on Windows 7.

Note: At one point while stepping, the debug window shows a KeyError on 
unittest.  You'll see it yourself, but it is interesting.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34609] Idle Unitest

2018-09-07 Thread Tal Einat


Tal Einat  added the comment:

Testing similarly to Terry, this doesn't reproduce with a recent build of 
master branch (3.8) on Ubuntu 16.04.

I'll be able to try a build of older versions with IDLE only in a few days.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34609] Idle Unitest

2018-09-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I cannot confirm this.  I tested 3.6.6 on Windows 10 with tem3.py containing

import unittest
print unittest

I ran this twice, without and with debug on.  The output:

 RESTART: F:\Python\a\tem3.py 

>>> 
[DEBUG ON]
>>> 
 RESTART: F:\Python\a\tem3.py 

[DEBUG ON]
>>>

On the second run, I hit the [Go] button on Debug Control.  The minimal program 
above needs to be tested with 3.6.6 or 3.7.0 on Linux.

--
nosy: +cheryl.sabella, taleinat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34609] Idle Unitest

2018-09-07 Thread pisc...@yahoo.fr


New submission from pisc...@yahoo.fr :

Idle is unable to import unittest. and raises an attributeError.
Output of the Python shell Idle is included in the file bug idle.

several files raise this exception
on of them is included in this report
the Trace for Idle is as follows :
Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> 
[DEBUG ON]
>>> 
 RESTART: 
/home/odile/Documents/dev_logiciels/pyhton/openclassrooms/labyrinthe/roboc2/test/test_carte.py
 
Traceback (most recent call last):
  File 
"/home/odile/Documents/dev_logiciels/pyhton/openclassrooms/labyrinthe/roboc2/test/test_carte.py",
 line 5, in 
import unittest
  File "", line 968, in _find_and_load
  File "", line 148, in __enter__
  File "", line 174, in _get_module_lock
  File "", line 59, in __init__
  File "", line 59, in __init__
  File "/usr/lib/python3.6/bdb.py", line 51, in trace_dispatch
return self.dispatch_line(frame)
  File "/usr/lib/python3.6/bdb.py", line 69, in dispatch_line
self.user_line(frame)
  File "/usr/lib/python3.6/idlelib/debugger.py", line 24, in user_line
self.gui.interaction(message, frame)
AttributeError: '_ModuleLock' object has no attribute 'name'
[DEBUG ON]

Idle version is 3.6.5

--
assignee: terry.reedy
components: IDLE
files: test_main.py
messages: 324779
nosy: pisc...@yahoo.fr, terry.reedy
priority: normal
severity: normal
status: open
title: Idle Unitest
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47790/test_main.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com