Message336728
Here's the simplest example I could come up with -- hit this while debugging pytest (which uses attrs which uses similar code to this to make classes)
import pdb; pdb.Pdb(skip=['django.*']).set_trace()
eval(compile("1", "", "exec"), {})
print('ok!')
When running this:
$ python3.8 t.py
> /home/asottile/workspace/setup-cfg-fmt/t.py(2)<module>()
-> eval(compile("1", "", "exec"), {})
(Pdb) n
Traceback (most recent call last):
File "t.py", line 2, in <module>
eval(compile("1", "", "exec"), {})
File "", line 1, in <module>
File "/usr/lib/python3.8/bdb.py", line 90, in trace_dispatch
return self.dispatch_call(frame, arg)
File "/usr/lib/python3.8/bdb.py", line 128, in dispatch_call
if not (self.stop_here(frame) or self.break_anywhere(frame)):
File "/usr/lib/python3.8/bdb.py", line 203, in stop_here
self.is_skipped_module(frame.f_globals.get('__name__')):
File "/usr/lib/python3.8/bdb.py", line 194, in is_skipped_module
if fnmatch.fnmatch(module_name, pattern):
File "/usr/lib/python3.8/fnmatch.py", line 34, in fnmatch
name = os.path.normcase(name)
File "/usr/lib/python3.8/posixpath.py", line 54, in normcase
s = os.fspath(s)
TypeError: expected str, bytes or os.PathLike object, not NoneType
$ python3.8 --version --version
Python 3.8.0a2 (default, Feb 25 2019, 23:11:49)
[GCC 7.3.0] |
|
Date |
User |
Action |
Args |
2019-02-27 03:46:52 | Anthony Sottile | set | recipients:
+ Anthony Sottile |
2019-02-27 03:46:52 | Anthony Sottile | set | messageid: <1551239212.19.0.177135344366.issue36130@roundup.psfhosted.org> |
2019-02-27 03:46:52 | Anthony Sottile | link | issue36130 messages |
2019-02-27 03:46:51 | Anthony Sottile | create | |
|