Description
Describe the bug
When I'm going to stop on PyCharm breakpoint, this exception is raised:
Connected to pydev debugger (build 182.4505.26)
Traceback (most recent call last):
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 750, in _pydevd_bundle.pydevd_cython_win32_27_64.PyDBFrame.trace_dispatch
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 254, in _pydevd_bundle.pydevd_cython_win32_27_64.PyDBFrame.do_wait_suspend
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 778, in do_wait_suspend
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 469, in process_internal_commands
NameError: global name 'getattr' is not defined
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 1664, in
main()
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:/Perforce/KiteTestsDevelopment/kite/libs/test2/pyfakefstest.py", line 4, in
patcher.fs.create_dir("D:\somefile")
File "D:/Perforce/KiteTestsDevelopment/kite/libs/test2/pyfakefstest.py", line 4, in
patcher.fs.create_dir("D:\somefile")
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 969, in _pydevd_bundle.pydevd_cython_win32_27_64.SafeCallWrapper.call
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 515, in _pydevd_bundle.pydevd_cython_win32_27_64.PyDBFrame.trace_dispatch
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 759, in _pydevd_bundle.pydevd_cython_win32_27_64.PyDBFrame.trace_dispatch
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 750, in _pydevd_bundle.pydevd_cython_win32_27_64.PyDBFrame.trace_dispatch
File "_pydevd_bundle\pydevd_cython_win32_27_64.pyx", line 254, in _pydevd_bundle.pydevd_cython_win32_27_64.PyDBFrame.do_wait_suspend
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 778, in do_wait_suspend
self.process_internal_commands()
File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydevd.py", line 469, in process_internal_commands
if getattr(t, 'is_pydev_daemon_thread', False):
NameError: global name 'getattr' is not defined
How To Reproduce
Run in PyCharm this code:
from pyfakefs.fake_filesystem_unittest import Patcher
with Patcher() as patcher:
patcher.fs.create_dir("D:\somefile") # <- breakpoint here!
Your enviroment
Windows-7-6.1.7601-SP1
('Python', '2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]')
('pyfakefs', '3.5.5')
PyCharm 2018.2.4.