This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile
Date 2019-02-27.03:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551239212.19.0.177135344366.issue36130@roundup.psfhosted.org>
In-reply-to
Content
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]
History
Date User Action Args
2019-02-27 03:46:52Anthony Sottilesetrecipients: + Anthony Sottile
2019-02-27 03:46:52Anthony Sottilesetmessageid: <1551239212.19.0.177135344366.issue36130@roundup.psfhosted.org>
2019-02-27 03:46:52Anthony Sottilelinkissue36130 messages
2019-02-27 03:46:51Anthony Sottilecreate