daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Oct 17th, 2015 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ==================================================================== test session starts =====================================================================
  2. platform darwin -- Python 3.5.0, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
  3. rootdir: /Users/aaronmeurer/Documents/xonsh, inifile:
  4. collected 752 items / 3 errors
  5.  
  6. tests/test_aliases.py .....
  7. tests/test_builtins.py .....................
  8. tests/test_dirstack.py FFF
  9. tests/test_environ.py .........
  10. tests/test_execer.py FFFFFEF
  11. tests/test_history.py ...............
  12. tests/test_imphooks.py EFFF
  13. tests/test_lazyjson.py ...................
  14. tests/test_lexer.py .....................................
  15. tests/test_man.py .
  16. tests/test_parser.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  17. tests/test_prompt_toolkit_history.py .....
  18. tests/test_prompt_toolkit_tools.py .
  19.  
  20. =========================================================================== ERRORS ===========================================================================
  21. _______________________________________________________ ERROR collecting tests/test_foreign_shells.py ________________________________________________________
  22. tests/test_foreign_shells.py:10: in <module>
  23.     from xonsh.foreign_shells import foreign_shell_data, parse_env, parse_aliases
  24. E   ImportError: No module named 'xonsh.foreign_shells'
  25. ___________________________________________________________ ERROR collecting tests/test_replay.py ____________________________________________________________
  26. tests/test_replay.py:14: in <module>
  27.     SHELL = Shell()
  28. ../../anaconda3/lib/python3.5/site-packages/xonsh/shell.py:27: in __init__
  29.     self._init_environ(ctx)
  30. ../../anaconda3/lib/python3.5/site-packages/xonsh/shell.py:62: in _init_environ
  31.     self.ctx = xonshrc_context(rcfile=rc, execer=self.execer)
  32. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:539: in xonshrc_context
  33.     execer.exec(rc, glbs=env)
  34. ../../anaconda3/lib/python3.5/site-packages/xonsh/execer.py:127: in exec
  35.     return exec(code, glbs, locs)
  36. ../../.xonshrc:9: in <module>
  37.     catimg
  38. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:625: in subproc_uncaptured
  39.     return run_subproc(cmds, captured=False)
  40. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:570: in run_subproc
  41.     **subproc_kwargs)
  42. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  43.     restore_signals, start_new_session)
  44. ../../anaconda3/lib/python3.5/subprocess.py:1540: in _execute_child
  45.     raise child_exception_type(errno_num, err_msg)
  46. E   OSError: [Errno 7] Argument list too long
  47. ---------------------------------------------------------------------- Captured stderr -----------------------------------------------------------------------
  48. /Users/aaronmeurer/anaconda3/lib/python3.5/site-packages/xonsh/aliases.py:129: RuntimeWarning: could not parse Bash alias "emacsclient": ValueError('No closing quotation',)
  49.   RuntimeWarning)
  50. ____________________________________________________________ ERROR collecting tests/test_tools.py ____________________________________________________________
  51. tests/test_tools.py:9: in <module>
  52.     from xonsh.tools import subproc_toks, subexpr_from_unbalanced, is_int, \
  53. E   ImportError: cannot import name 'is_float'
  54. _____________________________________________________________ ERROR at setup of test_bad_indent ______________________________________________________________
  55.  
  56.     def setup():
  57.         # only setup one parser
  58.         global EXECER
  59. >       EXECER = Execer(debug_level=DEBUG_LEVEL)
  60.  
  61. tests/test_execer.py:24:
  62. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  63. ../../anaconda3/lib/python3.5/site-packages/xonsh/execer.py:41: in __init__
  64.     load_builtins(execer=self)
  65. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  66.     builtins.__xonsh_env__ = ENV = Env(default_env())
  67. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  68.     ctx.update(bash_env())
  69. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  70.  
  71.     def bash_env():
  72.         """Attempts to compute the bash envinronment variables."""
  73.         currenv = None
  74.         if hasattr(builtins, '__xonsh_env__'):
  75. >           currenv = builtins.__xonsh_env__.detype()
  76. E           AttributeError: 'NoneType' object has no attribute 'detype'
  77.  
  78. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:512: AttributeError
  79. _______________________________________________________________ ERROR at setup of test_import ________________________________________________________________
  80.  
  81.     def setup():
  82.         global LOADED_HERE
  83.         if built_ins.BUILTINS_LOADED:
  84.             unload_builtins()  # make sure we have a clean env from other tests.
  85. >           load_builtins(execer=Execer())
  86.  
  87. tests/test_imphooks.py:18:
  88. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  89. ../../anaconda3/lib/python3.5/site-packages/xonsh/execer.py:41: in __init__
  90.     load_builtins(execer=self)
  91. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  92.     builtins.__xonsh_env__ = ENV = Env(default_env())
  93. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  94.     ctx.update(bash_env())
  95. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  96.     universal_newlines=True)
  97. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  98.     **kwargs).stdout
  99. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  100.     with Popen(*popenargs, **kwargs) as process:
  101. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  102.     restore_signals, start_new_session)
  103. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  104.  
  105. self = <subprocess.Popen object at 0x105cae550>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  106. cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14
  107. errwrite = 15, restore_signals = True, start_new_session = False
  108.  
  109.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  110.                        pass_fds, cwd, env,
  111.                        startupinfo, creationflags, shell,
  112.                        p2cread, p2cwrite,
  113.                        c2pread, c2pwrite,
  114.                        errread, errwrite,
  115.                        restore_signals, start_new_session):
  116.         """Execute program (POSIX version)"""
  117.  
  118.         if isinstance(args, (str, bytes)):
  119.             args = [args]
  120.         else:
  121.             args = list(args)
  122.  
  123.         if shell:
  124.             args = ["/bin/sh", "-c"] + args
  125.             if executable:
  126.                 args[0] = executable
  127.  
  128.         if executable is None:
  129.             executable = args[0]
  130.         orig_executable = executable
  131.  
  132.         # For transferring possible exec failure from child to parent.
  133.         # Data format: "exception name:hex errno:description"
  134.         # Pickle is not used; it is complex and involves memory allocation.
  135.         errpipe_read, errpipe_write = os.pipe()
  136.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  137.         low_fds_to_close = []
  138.         while errpipe_write < 3:
  139.             low_fds_to_close.append(errpipe_write)
  140.             errpipe_write = os.dup(errpipe_write)
  141.         for low_fd in low_fds_to_close:
  142.             os.close(low_fd)
  143.         try:
  144.             try:
  145.                 # We must avoid complex work that could involve
  146.                 # malloc or free in the child process to avoid
  147.                 # potential deadlocks, thus we do all this here.
  148.                 # and pass it to fork_exec()
  149.  
  150.                 if env is not None:
  151.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  152.                                 for k, v in env.items()]
  153.                 else:
  154.                     env_list = None  # Use execv instead of execve.
  155.                 executable = os.fsencode(executable)
  156.                 if os.path.dirname(executable):
  157.                     executable_list = (executable,)
  158.                 else:
  159.                     # This matches the behavior of os._execvpe().
  160.                     executable_list = tuple(
  161.                         os.path.join(os.fsencode(dir), executable)
  162.                         for dir in os.get_exec_path(env))
  163.                 fds_to_keep = set(pass_fds)
  164.                 fds_to_keep.add(errpipe_write)
  165.                 self.pid = _posixsubprocess.fork_exec(
  166.                         args, executable_list,
  167.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  168.                         p2cread, p2cwrite, c2pread, c2pwrite,
  169.                         errread, errwrite,
  170.                         errpipe_read, errpipe_write,
  171.                         restore_signals, start_new_session, preexec_fn)
  172.                 self._child_created = True
  173.             finally:
  174.                 # be sure the FD is closed no matter what
  175.                 os.close(errpipe_write)
  176.  
  177.             # self._devnull is not always defined.
  178.             devnull_fd = getattr(self, '_devnull', None)
  179.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  180.                 os.close(p2cread)
  181.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  182.                 os.close(c2pwrite)
  183.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  184.                 os.close(errwrite)
  185.             if devnull_fd is not None:
  186.                 os.close(devnull_fd)
  187.             # Prevent a double close of these fds from __init__ on error.
  188.             self._closed_child_pipe_fds = True
  189.  
  190.             # Wait for exec to fail or succeed; possibly raising an
  191.             # exception (limited in size)
  192.             errpipe_data = bytearray()
  193.             while True:
  194.                 part = os.read(errpipe_read, 50000)
  195.                 errpipe_data += part
  196.                 if not part or len(errpipe_data) > 50000:
  197.                     break
  198.         finally:
  199.             # be sure the FD is closed no matter what
  200.             os.close(errpipe_read)
  201.  
  202.         if errpipe_data:
  203.             try:
  204.                 os.waitpid(self.pid, 0)
  205.             except ChildProcessError:
  206.                 pass
  207.             try:
  208.                 exception_name, hex_errno, err_msg = (
  209.                         errpipe_data.split(b':', 2))
  210.             except ValueError:
  211.                 exception_name = b'SubprocessError'
  212.                 hex_errno = b'0'
  213.                 err_msg = (b'Bad exception data from child: ' +
  214.                            repr(errpipe_data))
  215.             child_exception_type = getattr(
  216.                     builtins, exception_name.decode('ascii'),
  217.                     SubprocessError)
  218.             err_msg = err_msg.decode(errors="surrogatepass")
  219.             if issubclass(child_exception_type, OSError) and hex_errno:
  220.                 errno_num = int(hex_errno, 16)
  221.                 child_exec_never_called = (err_msg == "noexec")
  222.                 if child_exec_never_called:
  223.                     err_msg = ""
  224.                 if errno_num != 0:
  225.                     err_msg = os.strerror(errno_num)
  226.                     if errno_num == errno.ENOENT:
  227.                         if child_exec_never_called:
  228.                             # The error must be from chdir(cwd).
  229.                             err_msg += ': ' + repr(cwd)
  230.                         else:
  231.                             err_msg += ': ' + repr(orig_executable)
  232. >               raise child_exception_type(errno_num, err_msg)
  233. E               OSError: [Errno 7] Argument list too long
  234.  
  235. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  236. ========================================================================== FAILURES ==========================================================================
  237. ________________________________________________________________________ test_simple _________________________________________________________________________
  238.  
  239.     def test_simple():
  240. >       load_builtins()
  241.  
  242. tests/test_dirstack.py:36:
  243. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  244. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  245.     builtins.__xonsh_env__ = ENV = Env(default_env())
  246. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  247.     ctx.update(bash_env())
  248. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  249.     universal_newlines=True)
  250. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  251.     **kwargs).stdout
  252. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  253.     with Popen(*popenargs, **kwargs) as process:
  254. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  255.     restore_signals, start_new_session)
  256. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  257.  
  258. self = <subprocess.Popen object at 0x102fa9320>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  259. cwd = None
  260. env = {'\x1b]1337;File': 'L1VzZXJzL2Fhcm9ubWV1cmVyLy5jYXRpbWcvY2FjaGUvU3dscmRhQi5qcGc=;inline=1;size=216605:/9j/2wBDAAcHBwcH...PTx5x6J/Render', 'BASH_COMPLETIONS': '/usr/local/etc/bash_completion:/opt/local/etc/profile.d/bash_completion.sh', ...}
  261. startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14, errwrite = 15
  262. restore_signals = True, start_new_session = False
  263.  
  264.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  265.                        pass_fds, cwd, env,
  266.                        startupinfo, creationflags, shell,
  267.                        p2cread, p2cwrite,
  268.                        c2pread, c2pwrite,
  269.                        errread, errwrite,
  270.                        restore_signals, start_new_session):
  271.         """Execute program (POSIX version)"""
  272.  
  273.         if isinstance(args, (str, bytes)):
  274.             args = [args]
  275.         else:
  276.             args = list(args)
  277.  
  278.         if shell:
  279.             args = ["/bin/sh", "-c"] + args
  280.             if executable:
  281.                 args[0] = executable
  282.  
  283.         if executable is None:
  284.             executable = args[0]
  285.         orig_executable = executable
  286.  
  287.         # For transferring possible exec failure from child to parent.
  288.         # Data format: "exception name:hex errno:description"
  289.         # Pickle is not used; it is complex and involves memory allocation.
  290.         errpipe_read, errpipe_write = os.pipe()
  291.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  292.         low_fds_to_close = []
  293.         while errpipe_write < 3:
  294.             low_fds_to_close.append(errpipe_write)
  295.             errpipe_write = os.dup(errpipe_write)
  296.         for low_fd in low_fds_to_close:
  297.             os.close(low_fd)
  298.         try:
  299.             try:
  300.                 # We must avoid complex work that could involve
  301.                 # malloc or free in the child process to avoid
  302.                 # potential deadlocks, thus we do all this here.
  303.                 # and pass it to fork_exec()
  304.  
  305.                 if env is not None:
  306.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  307.                                 for k, v in env.items()]
  308.                 else:
  309.                     env_list = None  # Use execv instead of execve.
  310.                 executable = os.fsencode(executable)
  311.                 if os.path.dirname(executable):
  312.                     executable_list = (executable,)
  313.                 else:
  314.                     # This matches the behavior of os._execvpe().
  315.                     executable_list = tuple(
  316.                         os.path.join(os.fsencode(dir), executable)
  317.                         for dir in os.get_exec_path(env))
  318.                 fds_to_keep = set(pass_fds)
  319.                 fds_to_keep.add(errpipe_write)
  320.                 self.pid = _posixsubprocess.fork_exec(
  321.                         args, executable_list,
  322.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  323.                         p2cread, p2cwrite, c2pread, c2pwrite,
  324.                         errread, errwrite,
  325.                         errpipe_read, errpipe_write,
  326.                         restore_signals, start_new_session, preexec_fn)
  327.                 self._child_created = True
  328.             finally:
  329.                 # be sure the FD is closed no matter what
  330.                 os.close(errpipe_write)
  331.  
  332.             # self._devnull is not always defined.
  333.             devnull_fd = getattr(self, '_devnull', None)
  334.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  335.                 os.close(p2cread)
  336.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  337.                 os.close(c2pwrite)
  338.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  339.                 os.close(errwrite)
  340.             if devnull_fd is not None:
  341.                 os.close(devnull_fd)
  342.             # Prevent a double close of these fds from __init__ on error.
  343.             self._closed_child_pipe_fds = True
  344.  
  345.             # Wait for exec to fail or succeed; possibly raising an
  346.             # exception (limited in size)
  347.             errpipe_data = bytearray()
  348.             while True:
  349.                 part = os.read(errpipe_read, 50000)
  350.                 errpipe_data += part
  351.                 if not part or len(errpipe_data) > 50000:
  352.                     break
  353.         finally:
  354.             # be sure the FD is closed no matter what
  355.             os.close(errpipe_read)
  356.  
  357.         if errpipe_data:
  358.             try:
  359.                 os.waitpid(self.pid, 0)
  360.             except ChildProcessError:
  361.                 pass
  362.             try:
  363.                 exception_name, hex_errno, err_msg = (
  364.                         errpipe_data.split(b':', 2))
  365.             except ValueError:
  366.                 exception_name = b'SubprocessError'
  367.                 hex_errno = b'0'
  368.                 err_msg = (b'Bad exception data from child: ' +
  369.                            repr(errpipe_data))
  370.             child_exception_type = getattr(
  371.                     builtins, exception_name.decode('ascii'),
  372.                     SubprocessError)
  373.             err_msg = err_msg.decode(errors="surrogatepass")
  374.             if issubclass(child_exception_type, OSError) and hex_errno:
  375.                 errno_num = int(hex_errno, 16)
  376.                 child_exec_never_called = (err_msg == "noexec")
  377.                 if child_exec_never_called:
  378.                     err_msg = ""
  379.                 if errno_num != 0:
  380.                     err_msg = os.strerror(errno_num)
  381.                     if errno_num == errno.ENOENT:
  382.                         if child_exec_never_called:
  383.                             # The error must be from chdir(cwd).
  384.                             err_msg += ': ' + repr(cwd)
  385.                         else:
  386.                             err_msg += ': ' + repr(orig_executable)
  387. >               raise child_exception_type(errno_num, err_msg)
  388. E               OSError: [Errno 7] Argument list too long
  389.  
  390. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  391. _____________________________________________________________________ test_cdpath_simple _____________________________________________________________________
  392.  
  393.     def test_cdpath_simple():
  394. >       with xonsh_env(Env(CDPATH=PARENT)):
  395.  
  396. tests/test_dirstack.py:43:
  397. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  398. ../../anaconda3/lib/python3.5/contextlib.py:59: in __enter__
  399.     return next(self.gen)
  400. tests/test_dirstack.py:29: in xonsh_env
  401.     load_builtins()
  402. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  403.     builtins.__xonsh_env__ = ENV = Env(default_env())
  404. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  405.     ctx.update(bash_env())
  406. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  407.     universal_newlines=True)
  408. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  409.     **kwargs).stdout
  410. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  411.     with Popen(*popenargs, **kwargs) as process:
  412. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  413.     restore_signals, start_new_session)
  414. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  415.  
  416. self = <subprocess.Popen object at 0x10698c6d8>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  417. cwd = None
  418. env = {'\x1b]1337;File': 'L1VzZXJzL2Fhcm9ubWV1cmVyLy5jYXRpbWcvY2FjaGUvU3dscmRhQi5qcGc=;inline=1;size=216605:/9j/2wBDAAcHBwcH...PTx5x6J/Render', 'BASH_COMPLETIONS': '/usr/local/etc/bash_completion:/opt/local/etc/profile.d/bash_completion.sh', ...}
  419. startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14, errwrite = 15
  420. restore_signals = True, start_new_session = False
  421.  
  422.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  423.                        pass_fds, cwd, env,
  424.                        startupinfo, creationflags, shell,
  425.                        p2cread, p2cwrite,
  426.                        c2pread, c2pwrite,
  427.                        errread, errwrite,
  428.                        restore_signals, start_new_session):
  429.         """Execute program (POSIX version)"""
  430.  
  431.         if isinstance(args, (str, bytes)):
  432.             args = [args]
  433.         else:
  434.             args = list(args)
  435.  
  436.         if shell:
  437.             args = ["/bin/sh", "-c"] + args
  438.             if executable:
  439.                 args[0] = executable
  440.  
  441.         if executable is None:
  442.             executable = args[0]
  443.         orig_executable = executable
  444.  
  445.         # For transferring possible exec failure from child to parent.
  446.         # Data format: "exception name:hex errno:description"
  447.         # Pickle is not used; it is complex and involves memory allocation.
  448.         errpipe_read, errpipe_write = os.pipe()
  449.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  450.         low_fds_to_close = []
  451.         while errpipe_write < 3:
  452.             low_fds_to_close.append(errpipe_write)
  453.             errpipe_write = os.dup(errpipe_write)
  454.         for low_fd in low_fds_to_close:
  455.             os.close(low_fd)
  456.         try:
  457.             try:
  458.                 # We must avoid complex work that could involve
  459.                 # malloc or free in the child process to avoid
  460.                 # potential deadlocks, thus we do all this here.
  461.                 # and pass it to fork_exec()
  462.  
  463.                 if env is not None:
  464.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  465.                                 for k, v in env.items()]
  466.                 else:
  467.                     env_list = None  # Use execv instead of execve.
  468.                 executable = os.fsencode(executable)
  469.                 if os.path.dirname(executable):
  470.                     executable_list = (executable,)
  471.                 else:
  472.                     # This matches the behavior of os._execvpe().
  473.                     executable_list = tuple(
  474.                         os.path.join(os.fsencode(dir), executable)
  475.                         for dir in os.get_exec_path(env))
  476.                 fds_to_keep = set(pass_fds)
  477.                 fds_to_keep.add(errpipe_write)
  478.                 self.pid = _posixsubprocess.fork_exec(
  479.                         args, executable_list,
  480.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  481.                         p2cread, p2cwrite, c2pread, c2pwrite,
  482.                         errread, errwrite,
  483.                         errpipe_read, errpipe_write,
  484.                         restore_signals, start_new_session, preexec_fn)
  485.                 self._child_created = True
  486.             finally:
  487.                 # be sure the FD is closed no matter what
  488.                 os.close(errpipe_write)
  489.  
  490.             # self._devnull is not always defined.
  491.             devnull_fd = getattr(self, '_devnull', None)
  492.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  493.                 os.close(p2cread)
  494.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  495.                 os.close(c2pwrite)
  496.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  497.                 os.close(errwrite)
  498.             if devnull_fd is not None:
  499.                 os.close(devnull_fd)
  500.             # Prevent a double close of these fds from __init__ on error.
  501.             self._closed_child_pipe_fds = True
  502.  
  503.             # Wait for exec to fail or succeed; possibly raising an
  504.             # exception (limited in size)
  505.             errpipe_data = bytearray()
  506.             while True:
  507.                 part = os.read(errpipe_read, 50000)
  508.                 errpipe_data += part
  509.                 if not part or len(errpipe_data) > 50000:
  510.                     break
  511.         finally:
  512.             # be sure the FD is closed no matter what
  513.             os.close(errpipe_read)
  514.  
  515.         if errpipe_data:
  516.             try:
  517.                 os.waitpid(self.pid, 0)
  518.             except ChildProcessError:
  519.                 pass
  520.             try:
  521.                 exception_name, hex_errno, err_msg = (
  522.                         errpipe_data.split(b':', 2))
  523.             except ValueError:
  524.                 exception_name = b'SubprocessError'
  525.                 hex_errno = b'0'
  526.                 err_msg = (b'Bad exception data from child: ' +
  527.                            repr(errpipe_data))
  528.             child_exception_type = getattr(
  529.                     builtins, exception_name.decode('ascii'),
  530.                     SubprocessError)
  531.             err_msg = err_msg.decode(errors="surrogatepass")
  532.             if issubclass(child_exception_type, OSError) and hex_errno:
  533.                 errno_num = int(hex_errno, 16)
  534.                 child_exec_never_called = (err_msg == "noexec")
  535.                 if child_exec_never_called:
  536.                     err_msg = ""
  537.                 if errno_num != 0:
  538.                     err_msg = os.strerror(errno_num)
  539.                     if errno_num == errno.ENOENT:
  540.                         if child_exec_never_called:
  541.                             # The error must be from chdir(cwd).
  542.                             err_msg += ': ' + repr(cwd)
  543.                         else:
  544.                             err_msg += ': ' + repr(orig_executable)
  545. >               raise child_exception_type(errno_num, err_msg)
  546. E               OSError: [Errno 7] Argument list too long
  547.  
  548. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  549. ___________________________________________________________________ test_cdpath_collision ____________________________________________________________________
  550.  
  551.     def test_cdpath_collision():
  552. >       with xonsh_env(Env(CDPATH=PARENT)):
  553.  
  554. tests/test_dirstack.py:50:
  555. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  556. ../../anaconda3/lib/python3.5/contextlib.py:59: in __enter__
  557.     return next(self.gen)
  558. tests/test_dirstack.py:29: in xonsh_env
  559.     load_builtins()
  560. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  561.     builtins.__xonsh_env__ = ENV = Env(default_env())
  562. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  563.     ctx.update(bash_env())
  564. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  565.     universal_newlines=True)
  566. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  567.     **kwargs).stdout
  568. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  569.     with Popen(*popenargs, **kwargs) as process:
  570. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  571.     restore_signals, start_new_session)
  572. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  573.  
  574. self = <subprocess.Popen object at 0x106880ef0>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  575. cwd = None
  576. env = {'\x1b]1337;File': 'L1VzZXJzL2Fhcm9ubWV1cmVyLy5jYXRpbWcvY2FjaGUvU3dscmRhQi5qcGc=;inline=1;size=216605:/9j/2wBDAAcHBwcH...PTx5x6J/Render', 'BASH_COMPLETIONS': '/usr/local/etc/bash_completion:/opt/local/etc/profile.d/bash_completion.sh', ...}
  577. startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14, errwrite = 15
  578. restore_signals = True, start_new_session = False
  579.  
  580.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  581.                        pass_fds, cwd, env,
  582.                        startupinfo, creationflags, shell,
  583.                        p2cread, p2cwrite,
  584.                        c2pread, c2pwrite,
  585.                        errread, errwrite,
  586.                        restore_signals, start_new_session):
  587.         """Execute program (POSIX version)"""
  588.  
  589.         if isinstance(args, (str, bytes)):
  590.             args = [args]
  591.         else:
  592.             args = list(args)
  593.  
  594.         if shell:
  595.             args = ["/bin/sh", "-c"] + args
  596.             if executable:
  597.                 args[0] = executable
  598.  
  599.         if executable is None:
  600.             executable = args[0]
  601.         orig_executable = executable
  602.  
  603.         # For transferring possible exec failure from child to parent.
  604.         # Data format: "exception name:hex errno:description"
  605.         # Pickle is not used; it is complex and involves memory allocation.
  606.         errpipe_read, errpipe_write = os.pipe()
  607.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  608.         low_fds_to_close = []
  609.         while errpipe_write < 3:
  610.             low_fds_to_close.append(errpipe_write)
  611.             errpipe_write = os.dup(errpipe_write)
  612.         for low_fd in low_fds_to_close:
  613.             os.close(low_fd)
  614.         try:
  615.             try:
  616.                 # We must avoid complex work that could involve
  617.                 # malloc or free in the child process to avoid
  618.                 # potential deadlocks, thus we do all this here.
  619.                 # and pass it to fork_exec()
  620.  
  621.                 if env is not None:
  622.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  623.                                 for k, v in env.items()]
  624.                 else:
  625.                     env_list = None  # Use execv instead of execve.
  626.                 executable = os.fsencode(executable)
  627.                 if os.path.dirname(executable):
  628.                     executable_list = (executable,)
  629.                 else:
  630.                     # This matches the behavior of os._execvpe().
  631.                     executable_list = tuple(
  632.                         os.path.join(os.fsencode(dir), executable)
  633.                         for dir in os.get_exec_path(env))
  634.                 fds_to_keep = set(pass_fds)
  635.                 fds_to_keep.add(errpipe_write)
  636.                 self.pid = _posixsubprocess.fork_exec(
  637.                         args, executable_list,
  638.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  639.                         p2cread, p2cwrite, c2pread, c2pwrite,
  640.                         errread, errwrite,
  641.                         errpipe_read, errpipe_write,
  642.                         restore_signals, start_new_session, preexec_fn)
  643.                 self._child_created = True
  644.             finally:
  645.                 # be sure the FD is closed no matter what
  646.                 os.close(errpipe_write)
  647.  
  648.             # self._devnull is not always defined.
  649.             devnull_fd = getattr(self, '_devnull', None)
  650.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  651.                 os.close(p2cread)
  652.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  653.                 os.close(c2pwrite)
  654.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  655.                 os.close(errwrite)
  656.             if devnull_fd is not None:
  657.                 os.close(devnull_fd)
  658.             # Prevent a double close of these fds from __init__ on error.
  659.             self._closed_child_pipe_fds = True
  660.  
  661.             # Wait for exec to fail or succeed; possibly raising an
  662.             # exception (limited in size)
  663.             errpipe_data = bytearray()
  664.             while True:
  665.                 part = os.read(errpipe_read, 50000)
  666.                 errpipe_data += part
  667.                 if not part or len(errpipe_data) > 50000:
  668.                     break
  669.         finally:
  670.             # be sure the FD is closed no matter what
  671.             os.close(errpipe_read)
  672.  
  673.         if errpipe_data:
  674.             try:
  675.                 os.waitpid(self.pid, 0)
  676.             except ChildProcessError:
  677.                 pass
  678.             try:
  679.                 exception_name, hex_errno, err_msg = (
  680.                         errpipe_data.split(b':', 2))
  681.             except ValueError:
  682.                 exception_name = b'SubprocessError'
  683.                 hex_errno = b'0'
  684.                 err_msg = (b'Bad exception data from child: ' +
  685.                            repr(errpipe_data))
  686.             child_exception_type = getattr(
  687.                     builtins, exception_name.decode('ascii'),
  688.                     SubprocessError)
  689.             err_msg = err_msg.decode(errors="surrogatepass")
  690.             if issubclass(child_exception_type, OSError) and hex_errno:
  691.                 errno_num = int(hex_errno, 16)
  692.                 child_exec_never_called = (err_msg == "noexec")
  693.                 if child_exec_never_called:
  694.                     err_msg = ""
  695.                 if errno_num != 0:
  696.                     err_msg = os.strerror(errno_num)
  697.                     if errno_num == errno.ENOENT:
  698.                         if child_exec_never_called:
  699.                             # The error must be from chdir(cwd).
  700.                             err_msg += ': ' + repr(cwd)
  701.                         else:
  702.                             err_msg += ': ' + repr(orig_executable)
  703. >               raise child_exception_type(errno_num, err_msg)
  704. E               OSError: [Errno 7] Argument list too long
  705.  
  706. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  707. _______________________________________________________________________ test_bin_ls[0] _______________________________________________________________________
  708.  
  709. input = '/bin/ls -l'
  710.  
  711.     def check_eval(input):
  712.         with mock_xonsh_env(None):
  713. >           EXECER.debug_level = DEBUG_LEVEL
  714. E           AttributeError: 'NoneType' object has no attribute 'debug_level'
  715.  
  716. tests/test_execer.py:35: AttributeError
  717. ______________________________________________________________________ test_ls_dashl[0] ______________________________________________________________________
  718.  
  719. input = 'ls -l'
  720.  
  721.     def check_eval(input):
  722.         with mock_xonsh_env(None):
  723. >           EXECER.debug_level = DEBUG_LEVEL
  724. E           AttributeError: 'NoneType' object has no attribute 'debug_level'
  725.  
  726. tests/test_execer.py:35: AttributeError
  727. ______________________________________________________________________ test_which_ls[0] ______________________________________________________________________
  728.  
  729. input = 'which ls'
  730.  
  731.     def check_eval(input):
  732.         with mock_xonsh_env(None):
  733. >           EXECER.debug_level = DEBUG_LEVEL
  734. E           AttributeError: 'NoneType' object has no attribute 'debug_level'
  735.  
  736. tests/test_execer.py:35: AttributeError
  737. ____________________________________________________________________ test_simple_func[0] _____________________________________________________________________
  738.  
  739. input = "def prompt():\n    return '{user}'.format(user='me')\n"
  740.  
  741.     def check_parse(input):
  742.         with mock_xonsh_env(None):
  743. >           EXECER.debug_level = DEBUG_LEVEL
  744. E           AttributeError: 'NoneType' object has no attribute 'debug_level'
  745.  
  746. tests/test_execer.py:40: AttributeError
  747. _________________________________________________________________ test_simple_func_broken[0] _________________________________________________________________
  748.  
  749. input = "def prompt():\n    return '{user}'.format(\n       user='me')\n"
  750.  
  751.     def check_parse(input):
  752.         with mock_xonsh_env(None):
  753. >           EXECER.debug_level = DEBUG_LEVEL
  754. E           AttributeError: 'NoneType' object has no attribute 'debug_level'
  755.  
  756. tests/test_execer.py:40: AttributeError
  757. _______________________________________________________________ test_indent_with_empty_line[0] _______________________________________________________________
  758.  
  759. input = 'if True:\n\n    some_command for_sub_process_mode\n'
  760.  
  761.     def check_parse(input):
  762.         with mock_xonsh_env(None):
  763. >           EXECER.debug_level = DEBUG_LEVEL
  764. E           AttributeError: 'NoneType' object has no attribute 'debug_level'
  765.  
  766. tests/test_execer.py:40: AttributeError
  767. ____________________________________________________________________ test_absolute_import ____________________________________________________________________
  768.  
  769.     def test_absolute_import():
  770. >       from xpack import sample
  771.  
  772. tests/test_imphooks.py:30:
  773. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  774. <frozen importlib._bootstrap>:969: in _find_and_load
  775.     ???
  776. <frozen importlib._bootstrap>:958: in _find_and_load_unlocked
  777.     ???
  778. <frozen importlib._bootstrap>:673: in _load_unlocked
  779.     ???
  780. <frozen importlib._bootstrap_external>:658: in exec_module
  781.     ???
  782. ../../anaconda3/lib/python3.5/site-packages/xonsh/imphooks.py:79: in get_code
  783.     execer = self.execer
  784. ../../anaconda3/lib/python3.5/site-packages/xonsh/imphooks.py:30: in execer
  785.     self._execer = execer = Execer(unload=False)
  786. ../../anaconda3/lib/python3.5/site-packages/xonsh/execer.py:41: in __init__
  787.     load_builtins(execer=self)
  788. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  789.     builtins.__xonsh_env__ = ENV = Env(default_env())
  790. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  791.     ctx.update(bash_env())
  792. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  793.     universal_newlines=True)
  794. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  795.     **kwargs).stdout
  796. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  797.     with Popen(*popenargs, **kwargs) as process:
  798. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  799.     restore_signals, start_new_session)
  800. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  801.  
  802. self = <subprocess.Popen object at 0x106a0eac8>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  803. cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14
  804. errwrite = 15, restore_signals = True, start_new_session = False
  805.  
  806.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  807.                        pass_fds, cwd, env,
  808.                        startupinfo, creationflags, shell,
  809.                        p2cread, p2cwrite,
  810.                        c2pread, c2pwrite,
  811.                        errread, errwrite,
  812.                        restore_signals, start_new_session):
  813.         """Execute program (POSIX version)"""
  814.  
  815.         if isinstance(args, (str, bytes)):
  816.             args = [args]
  817.         else:
  818.             args = list(args)
  819.  
  820.         if shell:
  821.             args = ["/bin/sh", "-c"] + args
  822.             if executable:
  823.                 args[0] = executable
  824.  
  825.         if executable is None:
  826.             executable = args[0]
  827.         orig_executable = executable
  828.  
  829.         # For transferring possible exec failure from child to parent.
  830.         # Data format: "exception name:hex errno:description"
  831.         # Pickle is not used; it is complex and involves memory allocation.
  832.         errpipe_read, errpipe_write = os.pipe()
  833.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  834.         low_fds_to_close = []
  835.         while errpipe_write < 3:
  836.             low_fds_to_close.append(errpipe_write)
  837.             errpipe_write = os.dup(errpipe_write)
  838.         for low_fd in low_fds_to_close:
  839.             os.close(low_fd)
  840.         try:
  841.             try:
  842.                 # We must avoid complex work that could involve
  843.                 # malloc or free in the child process to avoid
  844.                 # potential deadlocks, thus we do all this here.
  845.                 # and pass it to fork_exec()
  846.  
  847.                 if env is not None:
  848.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  849.                                 for k, v in env.items()]
  850.                 else:
  851.                     env_list = None  # Use execv instead of execve.
  852.                 executable = os.fsencode(executable)
  853.                 if os.path.dirname(executable):
  854.                     executable_list = (executable,)
  855.                 else:
  856.                     # This matches the behavior of os._execvpe().
  857.                     executable_list = tuple(
  858.                         os.path.join(os.fsencode(dir), executable)
  859.                         for dir in os.get_exec_path(env))
  860.                 fds_to_keep = set(pass_fds)
  861.                 fds_to_keep.add(errpipe_write)
  862.                 self.pid = _posixsubprocess.fork_exec(
  863.                         args, executable_list,
  864.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  865.                         p2cread, p2cwrite, c2pread, c2pwrite,
  866.                         errread, errwrite,
  867.                         errpipe_read, errpipe_write,
  868.                         restore_signals, start_new_session, preexec_fn)
  869.                 self._child_created = True
  870.             finally:
  871.                 # be sure the FD is closed no matter what
  872.                 os.close(errpipe_write)
  873.  
  874.             # self._devnull is not always defined.
  875.             devnull_fd = getattr(self, '_devnull', None)
  876.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  877.                 os.close(p2cread)
  878.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  879.                 os.close(c2pwrite)
  880.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  881.                 os.close(errwrite)
  882.             if devnull_fd is not None:
  883.                 os.close(devnull_fd)
  884.             # Prevent a double close of these fds from __init__ on error.
  885.             self._closed_child_pipe_fds = True
  886.  
  887.             # Wait for exec to fail or succeed; possibly raising an
  888.             # exception (limited in size)
  889.             errpipe_data = bytearray()
  890.             while True:
  891.                 part = os.read(errpipe_read, 50000)
  892.                 errpipe_data += part
  893.                 if not part or len(errpipe_data) > 50000:
  894.                     break
  895.         finally:
  896.             # be sure the FD is closed no matter what
  897.             os.close(errpipe_read)
  898.  
  899.         if errpipe_data:
  900.             try:
  901.                 os.waitpid(self.pid, 0)
  902.             except ChildProcessError:
  903.                 pass
  904.             try:
  905.                 exception_name, hex_errno, err_msg = (
  906.                         errpipe_data.split(b':', 2))
  907.             except ValueError:
  908.                 exception_name = b'SubprocessError'
  909.                 hex_errno = b'0'
  910.                 err_msg = (b'Bad exception data from child: ' +
  911.                            repr(errpipe_data))
  912.             child_exception_type = getattr(
  913.                     builtins, exception_name.decode('ascii'),
  914.                     SubprocessError)
  915.             err_msg = err_msg.decode(errors="surrogatepass")
  916.             if issubclass(child_exception_type, OSError) and hex_errno:
  917.                 errno_num = int(hex_errno, 16)
  918.                 child_exec_never_called = (err_msg == "noexec")
  919.                 if child_exec_never_called:
  920.                     err_msg = ""
  921.                 if errno_num != 0:
  922.                     err_msg = os.strerror(errno_num)
  923.                     if errno_num == errno.ENOENT:
  924.                         if child_exec_never_called:
  925.                             # The error must be from chdir(cwd).
  926.                             err_msg += ': ' + repr(cwd)
  927.                         else:
  928.                             err_msg += ': ' + repr(orig_executable)
  929. >               raise child_exception_type(errno_num, err_msg)
  930. E               OSError: [Errno 7] Argument list too long
  931.  
  932. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  933. ____________________________________________________________________ test_relative_import ____________________________________________________________________
  934.  
  935.     def test_relative_import():
  936. >       from xpack import relimp
  937.  
  938. tests/test_imphooks.py:34:
  939. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  940. <frozen importlib._bootstrap>:969: in _find_and_load
  941.     ???
  942. <frozen importlib._bootstrap>:958: in _find_and_load_unlocked
  943.     ???
  944. <frozen importlib._bootstrap>:673: in _load_unlocked
  945.     ???
  946. <frozen importlib._bootstrap_external>:658: in exec_module
  947.     ???
  948. ../../anaconda3/lib/python3.5/site-packages/xonsh/imphooks.py:79: in get_code
  949.     execer = self.execer
  950. ../../anaconda3/lib/python3.5/site-packages/xonsh/imphooks.py:30: in execer
  951.     self._execer = execer = Execer(unload=False)
  952. ../../anaconda3/lib/python3.5/site-packages/xonsh/execer.py:41: in __init__
  953.     load_builtins(execer=self)
  954. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  955.     builtins.__xonsh_env__ = ENV = Env(default_env())
  956. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  957.     ctx.update(bash_env())
  958. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  959.     universal_newlines=True)
  960. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  961.     **kwargs).stdout
  962. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  963.     with Popen(*popenargs, **kwargs) as process:
  964. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  965.     restore_signals, start_new_session)
  966. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  967.  
  968. self = <subprocess.Popen object at 0x105dc3e10>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  969. cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14
  970. errwrite = 15, restore_signals = True, start_new_session = False
  971.  
  972.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  973.                        pass_fds, cwd, env,
  974.                        startupinfo, creationflags, shell,
  975.                        p2cread, p2cwrite,
  976.                        c2pread, c2pwrite,
  977.                        errread, errwrite,
  978.                        restore_signals, start_new_session):
  979.         """Execute program (POSIX version)"""
  980.  
  981.         if isinstance(args, (str, bytes)):
  982.             args = [args]
  983.         else:
  984.             args = list(args)
  985.  
  986.         if shell:
  987.             args = ["/bin/sh", "-c"] + args
  988.             if executable:
  989.                 args[0] = executable
  990.  
  991.         if executable is None:
  992.             executable = args[0]
  993.         orig_executable = executable
  994.  
  995.         # For transferring possible exec failure from child to parent.
  996.         # Data format: "exception name:hex errno:description"
  997.         # Pickle is not used; it is complex and involves memory allocation.
  998.         errpipe_read, errpipe_write = os.pipe()
  999.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  1000.         low_fds_to_close = []
  1001.         while errpipe_write < 3:
  1002.             low_fds_to_close.append(errpipe_write)
  1003.             errpipe_write = os.dup(errpipe_write)
  1004.         for low_fd in low_fds_to_close:
  1005.             os.close(low_fd)
  1006.         try:
  1007.             try:
  1008.                 # We must avoid complex work that could involve
  1009.                 # malloc or free in the child process to avoid
  1010.                 # potential deadlocks, thus we do all this here.
  1011.                 # and pass it to fork_exec()
  1012.  
  1013.                 if env is not None:
  1014.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  1015.                                 for k, v in env.items()]
  1016.                 else:
  1017.                     env_list = None  # Use execv instead of execve.
  1018.                 executable = os.fsencode(executable)
  1019.                 if os.path.dirname(executable):
  1020.                     executable_list = (executable,)
  1021.                 else:
  1022.                     # This matches the behavior of os._execvpe().
  1023.                     executable_list = tuple(
  1024.                         os.path.join(os.fsencode(dir), executable)
  1025.                         for dir in os.get_exec_path(env))
  1026.                 fds_to_keep = set(pass_fds)
  1027.                 fds_to_keep.add(errpipe_write)
  1028.                 self.pid = _posixsubprocess.fork_exec(
  1029.                         args, executable_list,
  1030.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  1031.                         p2cread, p2cwrite, c2pread, c2pwrite,
  1032.                         errread, errwrite,
  1033.                         errpipe_read, errpipe_write,
  1034.                         restore_signals, start_new_session, preexec_fn)
  1035.                 self._child_created = True
  1036.             finally:
  1037.                 # be sure the FD is closed no matter what
  1038.                 os.close(errpipe_write)
  1039.  
  1040.             # self._devnull is not always defined.
  1041.             devnull_fd = getattr(self, '_devnull', None)
  1042.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  1043.                 os.close(p2cread)
  1044.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  1045.                 os.close(c2pwrite)
  1046.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  1047.                 os.close(errwrite)
  1048.             if devnull_fd is not None:
  1049.                 os.close(devnull_fd)
  1050.             # Prevent a double close of these fds from __init__ on error.
  1051.             self._closed_child_pipe_fds = True
  1052.  
  1053.             # Wait for exec to fail or succeed; possibly raising an
  1054.             # exception (limited in size)
  1055.             errpipe_data = bytearray()
  1056.             while True:
  1057.                 part = os.read(errpipe_read, 50000)
  1058.                 errpipe_data += part
  1059.                 if not part or len(errpipe_data) > 50000:
  1060.                     break
  1061.         finally:
  1062.             # be sure the FD is closed no matter what
  1063.             os.close(errpipe_read)
  1064.  
  1065.         if errpipe_data:
  1066.             try:
  1067.                 os.waitpid(self.pid, 0)
  1068.             except ChildProcessError:
  1069.                 pass
  1070.             try:
  1071.                 exception_name, hex_errno, err_msg = (
  1072.                         errpipe_data.split(b':', 2))
  1073.             except ValueError:
  1074.                 exception_name = b'SubprocessError'
  1075.                 hex_errno = b'0'
  1076.                 err_msg = (b'Bad exception data from child: ' +
  1077.                            repr(errpipe_data))
  1078.             child_exception_type = getattr(
  1079.                     builtins, exception_name.decode('ascii'),
  1080.                     SubprocessError)
  1081.             err_msg = err_msg.decode(errors="surrogatepass")
  1082.             if issubclass(child_exception_type, OSError) and hex_errno:
  1083.                 errno_num = int(hex_errno, 16)
  1084.                 child_exec_never_called = (err_msg == "noexec")
  1085.                 if child_exec_never_called:
  1086.                     err_msg = ""
  1087.                 if errno_num != 0:
  1088.                     err_msg = os.strerror(errno_num)
  1089.                     if errno_num == errno.ENOENT:
  1090.                         if child_exec_never_called:
  1091.                             # The error must be from chdir(cwd).
  1092.                             err_msg += ': ' + repr(cwd)
  1093.                         else:
  1094.                             err_msg += ': ' + repr(orig_executable)
  1095. >               raise child_exception_type(errno_num, err_msg)
  1096. E               OSError: [Errno 7] Argument list too long
  1097.  
  1098. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  1099. ______________________________________________________________________ test_sub_import _______________________________________________________________________
  1100.  
  1101.     def test_sub_import():
  1102. >       from xpack.sub import sample
  1103.  
  1104. tests/test_imphooks.py:39:
  1105. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1106. <frozen importlib._bootstrap>:969: in _find_and_load
  1107.     ???
  1108. <frozen importlib._bootstrap>:958: in _find_and_load_unlocked
  1109.     ???
  1110. <frozen importlib._bootstrap>:673: in _load_unlocked
  1111.     ???
  1112. <frozen importlib._bootstrap_external>:658: in exec_module
  1113.     ???
  1114. ../../anaconda3/lib/python3.5/site-packages/xonsh/imphooks.py:79: in get_code
  1115.     execer = self.execer
  1116. ../../anaconda3/lib/python3.5/site-packages/xonsh/imphooks.py:30: in execer
  1117.     self._execer = execer = Execer(unload=False)
  1118. ../../anaconda3/lib/python3.5/site-packages/xonsh/execer.py:41: in __init__
  1119.     load_builtins(execer=self)
  1120. ../../anaconda3/lib/python3.5/site-packages/xonsh/built_ins.py:645: in load_builtins
  1121.     builtins.__xonsh_env__ = ENV = Env(default_env())
  1122. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:568: in default_env
  1123.     ctx.update(bash_env())
  1124. ../../anaconda3/lib/python3.5/site-packages/xonsh/environ.py:518: in bash_env
  1125.     universal_newlines=True)
  1126. ../../anaconda3/lib/python3.5/subprocess.py:629: in check_output
  1127.     **kwargs).stdout
  1128. ../../anaconda3/lib/python3.5/subprocess.py:696: in run
  1129.     with Popen(*popenargs, **kwargs) as process:
  1130. ../../anaconda3/lib/python3.5/subprocess.py:950: in __init__
  1131.     restore_signals, start_new_session)
  1132. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1133.  
  1134. self = <subprocess.Popen object at 0x1069c3a58>, args = ['bash', '-i', '-l'], executable = b'bash', preexec_fn = None, close_fds = True, pass_fds = ()
  1135. cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False, p2cread = 9, p2cwrite = 11, c2pread = 12, c2pwrite = 13, errread = 14
  1136. errwrite = 15, restore_signals = True, start_new_session = False
  1137.  
  1138.     def _execute_child(self, args, executable, preexec_fn, close_fds,
  1139.                        pass_fds, cwd, env,
  1140.                        startupinfo, creationflags, shell,
  1141.                        p2cread, p2cwrite,
  1142.                        c2pread, c2pwrite,
  1143.                        errread, errwrite,
  1144.                        restore_signals, start_new_session):
  1145.         """Execute program (POSIX version)"""
  1146.  
  1147.         if isinstance(args, (str, bytes)):
  1148.             args = [args]
  1149.         else:
  1150.             args = list(args)
  1151.  
  1152.         if shell:
  1153.             args = ["/bin/sh", "-c"] + args
  1154.             if executable:
  1155.                 args[0] = executable
  1156.  
  1157.         if executable is None:
  1158.             executable = args[0]
  1159.         orig_executable = executable
  1160.  
  1161.         # For transferring possible exec failure from child to parent.
  1162.         # Data format: "exception name:hex errno:description"
  1163.         # Pickle is not used; it is complex and involves memory allocation.
  1164.         errpipe_read, errpipe_write = os.pipe()
  1165.         # errpipe_write must not be in the standard io 0, 1, or 2 fd range.
  1166.         low_fds_to_close = []
  1167.         while errpipe_write < 3:
  1168.             low_fds_to_close.append(errpipe_write)
  1169.             errpipe_write = os.dup(errpipe_write)
  1170.         for low_fd in low_fds_to_close:
  1171.             os.close(low_fd)
  1172.         try:
  1173.             try:
  1174.                 # We must avoid complex work that could involve
  1175.                 # malloc or free in the child process to avoid
  1176.                 # potential deadlocks, thus we do all this here.
  1177.                 # and pass it to fork_exec()
  1178.  
  1179.                 if env is not None:
  1180.                     env_list = [os.fsencode(k) + b'=' + os.fsencode(v)
  1181.                                 for k, v in env.items()]
  1182.                 else:
  1183.                     env_list = None  # Use execv instead of execve.
  1184.                 executable = os.fsencode(executable)
  1185.                 if os.path.dirname(executable):
  1186.                     executable_list = (executable,)
  1187.                 else:
  1188.                     # This matches the behavior of os._execvpe().
  1189.                     executable_list = tuple(
  1190.                         os.path.join(os.fsencode(dir), executable)
  1191.                         for dir in os.get_exec_path(env))
  1192.                 fds_to_keep = set(pass_fds)
  1193.                 fds_to_keep.add(errpipe_write)
  1194.                 self.pid = _posixsubprocess.fork_exec(
  1195.                         args, executable_list,
  1196.                         close_fds, sorted(fds_to_keep), cwd, env_list,
  1197.                         p2cread, p2cwrite, c2pread, c2pwrite,
  1198.                         errread, errwrite,
  1199.                         errpipe_read, errpipe_write,
  1200.                         restore_signals, start_new_session, preexec_fn)
  1201.                 self._child_created = True
  1202.             finally:
  1203.                 # be sure the FD is closed no matter what
  1204.                 os.close(errpipe_write)
  1205.  
  1206.             # self._devnull is not always defined.
  1207.             devnull_fd = getattr(self, '_devnull', None)
  1208.             if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
  1209.                 os.close(p2cread)
  1210.             if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
  1211.                 os.close(c2pwrite)
  1212.             if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
  1213.                 os.close(errwrite)
  1214.             if devnull_fd is not None:
  1215.                 os.close(devnull_fd)
  1216.             # Prevent a double close of these fds from __init__ on error.
  1217.             self._closed_child_pipe_fds = True
  1218.  
  1219.             # Wait for exec to fail or succeed; possibly raising an
  1220.             # exception (limited in size)
  1221.             errpipe_data = bytearray()
  1222.             while True:
  1223.                 part = os.read(errpipe_read, 50000)
  1224.                 errpipe_data += part
  1225.                 if not part or len(errpipe_data) > 50000:
  1226.                     break
  1227.         finally:
  1228.             # be sure the FD is closed no matter what
  1229.             os.close(errpipe_read)
  1230.  
  1231.         if errpipe_data:
  1232.             try:
  1233.                 os.waitpid(self.pid, 0)
  1234.             except ChildProcessError:
  1235.                 pass
  1236.             try:
  1237.                 exception_name, hex_errno, err_msg = (
  1238.                         errpipe_data.split(b':', 2))
  1239.             except ValueError:
  1240.                 exception_name = b'SubprocessError'
  1241.                 hex_errno = b'0'
  1242.                 err_msg = (b'Bad exception data from child: ' +
  1243.                            repr(errpipe_data))
  1244.             child_exception_type = getattr(
  1245.                     builtins, exception_name.decode('ascii'),
  1246.                     SubprocessError)
  1247.             err_msg = err_msg.decode(errors="surrogatepass")
  1248.             if issubclass(child_exception_type, OSError) and hex_errno:
  1249.                 errno_num = int(hex_errno, 16)
  1250.                 child_exec_never_called = (err_msg == "noexec")
  1251.                 if child_exec_never_called:
  1252.                     err_msg = ""
  1253.                 if errno_num != 0:
  1254.                     err_msg = os.strerror(errno_num)
  1255.                     if errno_num == errno.ENOENT:
  1256.                         if child_exec_never_called:
  1257.                             # The error must be from chdir(cwd).
  1258.                             err_msg += ': ' + repr(cwd)
  1259.                         else:
  1260.                             err_msg += ': ' + repr(orig_executable)
  1261. >               raise child_exception_type(errno_num, err_msg)
  1262. E               OSError: [Errno 7] Argument list too long
  1263.  
  1264. ../../anaconda3/lib/python3.5/subprocess.py:1540: OSError
  1265. ____________________________________________________________________ test_int_literal[0] _____________________________________________________________________
  1266.  
  1267. inp = '42', run = True, mode = 'eval'
  1268.  
  1269.     def check_ast(inp, run=True, mode='eval'):
  1270.         # expect a Python AST
  1271.         exp = ast.parse(inp, mode=mode)
  1272.         # observe something from xonsh
  1273. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1274. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1275.  
  1276. tests/test_parser.py:62: AttributeError
  1277. ___________________________________________________________________ test_float_literal[0] ____________________________________________________________________
  1278.  
  1279. inp = '42.0', run = True, mode = 'eval'
  1280.  
  1281.     def check_ast(inp, run=True, mode='eval'):
  1282.         # expect a Python AST
  1283.         exp = ast.parse(inp, mode=mode)
  1284.         # observe something from xonsh
  1285. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1286. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1287.  
  1288. tests/test_parser.py:62: AttributeError
  1289. ____________________________________________________________________ test_imag_literal[0] ____________________________________________________________________
  1290.  
  1291. inp = '42j', run = True, mode = 'eval'
  1292.  
  1293.     def check_ast(inp, run=True, mode='eval'):
  1294.         # expect a Python AST
  1295.         exp = ast.parse(inp, mode=mode)
  1296.         # observe something from xonsh
  1297. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1298. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1299.  
  1300. tests/test_parser.py:62: AttributeError
  1301. _________________________________________________________________ test_float_imag_literal[0] _________________________________________________________________
  1302.  
  1303. inp = '42.0j', run = True, mode = 'eval'
  1304.  
  1305.     def check_ast(inp, run=True, mode='eval'):
  1306.         # expect a Python AST
  1307.         exp = ast.parse(inp, mode=mode)
  1308.         # observe something from xonsh
  1309. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1310. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1311.  
  1312. tests/test_parser.py:62: AttributeError
  1313. ______________________________________________________________________ test_complex[0] _______________________________________________________________________
  1314.  
  1315. inp = '42+84j', run = True, mode = 'eval'
  1316.  
  1317.     def check_ast(inp, run=True, mode='eval'):
  1318.         # expect a Python AST
  1319.         exp = ast.parse(inp, mode=mode)
  1320.         # observe something from xonsh
  1321. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1322. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1323.  
  1324. tests/test_parser.py:62: AttributeError
  1325. ____________________________________________________________________ test_str_literal[0] _____________________________________________________________________
  1326.  
  1327. inp = '"hello"', run = True, mode = 'eval'
  1328.  
  1329.     def check_ast(inp, run=True, mode='eval'):
  1330.         # expect a Python AST
  1331.         exp = ast.parse(inp, mode=mode)
  1332.         # observe something from xonsh
  1333. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1334. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1335.  
  1336. tests/test_parser.py:62: AttributeError
  1337. ___________________________________________________________________ test_bytes_literal[0] ____________________________________________________________________
  1338.  
  1339. inp = 'b"hello"', run = True, mode = 'eval'
  1340.  
  1341.     def check_ast(inp, run=True, mode='eval'):
  1342.         # expect a Python AST
  1343.         exp = ast.parse(inp, mode=mode)
  1344.         # observe something from xonsh
  1345. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1346. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1347.  
  1348. tests/test_parser.py:62: AttributeError
  1349. _____________________________________________________________________ test_unary_plus[0] _____________________________________________________________________
  1350.  
  1351. inp = '+1', run = True, mode = 'eval'
  1352.  
  1353.     def check_ast(inp, run=True, mode='eval'):
  1354.         # expect a Python AST
  1355.         exp = ast.parse(inp, mode=mode)
  1356.         # observe something from xonsh
  1357. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1358. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1359.  
  1360. tests/test_parser.py:62: AttributeError
  1361. ____________________________________________________________________ test_unary_minus[0] _____________________________________________________________________
  1362.  
  1363. inp = '-1', run = True, mode = 'eval'
  1364.  
  1365.     def check_ast(inp, run=True, mode='eval'):
  1366.         # expect a Python AST
  1367.         exp = ast.parse(inp, mode=mode)
  1368.         # observe something from xonsh
  1369. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1370. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1371.  
  1372. tests/test_parser.py:62: AttributeError
  1373. ____________________________________________________________________ test_unary_invert[0] ____________________________________________________________________
  1374.  
  1375. inp = '~1', run = True, mode = 'eval'
  1376.  
  1377.     def check_ast(inp, run=True, mode='eval'):
  1378.         # expect a Python AST
  1379.         exp = ast.parse(inp, mode=mode)
  1380.         # observe something from xonsh
  1381. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1382. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1383.  
  1384. tests/test_parser.py:62: AttributeError
  1385. _____________________________________________________________________ test_binop_plus[0] _____________________________________________________________________
  1386.  
  1387. inp = '42 + 65', run = True, mode = 'eval'
  1388.  
  1389.     def check_ast(inp, run=True, mode='eval'):
  1390.         # expect a Python AST
  1391.         exp = ast.parse(inp, mode=mode)
  1392.         # observe something from xonsh
  1393. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1394. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1395.  
  1396. tests/test_parser.py:62: AttributeError
  1397. ____________________________________________________________________ test_binop_minus[0] _____________________________________________________________________
  1398.  
  1399. inp = '42 - 65', run = True, mode = 'eval'
  1400.  
  1401.     def check_ast(inp, run=True, mode='eval'):
  1402.         # expect a Python AST
  1403.         exp = ast.parse(inp, mode=mode)
  1404.         # observe something from xonsh
  1405. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1406. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1407.  
  1408. tests/test_parser.py:62: AttributeError
  1409. ____________________________________________________________________ test_binop_times[0] _____________________________________________________________________
  1410.  
  1411. inp = '42 * 65', run = True, mode = 'eval'
  1412.  
  1413.     def check_ast(inp, run=True, mode='eval'):
  1414.         # expect a Python AST
  1415.         exp = ast.parse(inp, mode=mode)
  1416.         # observe something from xonsh
  1417. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1418. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1419.  
  1420. tests/test_parser.py:62: AttributeError
  1421. ___________________________________________________________________ test_binop_matmult[0] ____________________________________________________________________
  1422.  
  1423. inp = 'x @ y', run = False, mode = 'eval'
  1424.  
  1425.     def check_ast(inp, run=True, mode='eval'):
  1426.         # expect a Python AST
  1427.         exp = ast.parse(inp, mode=mode)
  1428.         # observe something from xonsh
  1429. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1430. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1431.  
  1432. tests/test_parser.py:62: AttributeError
  1433. _____________________________________________________________________ test_binop_div[0] ______________________________________________________________________
  1434.  
  1435. inp = '42 / 65', run = True, mode = 'eval'
  1436.  
  1437.     def check_ast(inp, run=True, mode='eval'):
  1438.         # expect a Python AST
  1439.         exp = ast.parse(inp, mode=mode)
  1440.         # observe something from xonsh
  1441. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1442. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1443.  
  1444. tests/test_parser.py:62: AttributeError
  1445. _____________________________________________________________________ test_binop_mod[0] ______________________________________________________________________
  1446.  
  1447. inp = '42 % 65', run = True, mode = 'eval'
  1448.  
  1449.     def check_ast(inp, run=True, mode='eval'):
  1450.         # expect a Python AST
  1451.         exp = ast.parse(inp, mode=mode)
  1452.         # observe something from xonsh
  1453. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1454. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1455.  
  1456. tests/test_parser.py:62: AttributeError
  1457. ___________________________________________________________________ test_binop_floordiv[0] ___________________________________________________________________
  1458.  
  1459. inp = '42 // 65', run = True, mode = 'eval'
  1460.  
  1461.     def check_ast(inp, run=True, mode='eval'):
  1462.         # expect a Python AST
  1463.         exp = ast.parse(inp, mode=mode)
  1464.         # observe something from xonsh
  1465. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1466. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1467.  
  1468. tests/test_parser.py:62: AttributeError
  1469. _____________________________________________________________________ test_binop_pow[0] ______________________________________________________________________
  1470.  
  1471. inp = '2 ** 2', run = True, mode = 'eval'
  1472.  
  1473.     def check_ast(inp, run=True, mode='eval'):
  1474.         # expect a Python AST
  1475.         exp = ast.parse(inp, mode=mode)
  1476.         # observe something from xonsh
  1477. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1478. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1479.  
  1480. tests/test_parser.py:62: AttributeError
  1481. ______________________________________________________________________ test_plus_pow[0] ______________________________________________________________________
  1482.  
  1483. inp = '42 + 2 ** 2', run = True, mode = 'eval'
  1484.  
  1485.     def check_ast(inp, run=True, mode='eval'):
  1486.         # expect a Python AST
  1487.         exp = ast.parse(inp, mode=mode)
  1488.         # observe something from xonsh
  1489. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1490. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1491.  
  1492. tests/test_parser.py:62: AttributeError
  1493. _____________________________________________________________________ test_plus_plus[0] ______________________________________________________________________
  1494.  
  1495. inp = '42 + 65 + 6', run = True, mode = 'eval'
  1496.  
  1497.     def check_ast(inp, run=True, mode='eval'):
  1498.         # expect a Python AST
  1499.         exp = ast.parse(inp, mode=mode)
  1500.         # observe something from xonsh
  1501. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1502. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1503.  
  1504. tests/test_parser.py:62: AttributeError
  1505. _____________________________________________________________________ test_plus_minus[0] _____________________________________________________________________
  1506.  
  1507. inp = '42 + 65 - 6', run = True, mode = 'eval'
  1508.  
  1509.     def check_ast(inp, run=True, mode='eval'):
  1510.         # expect a Python AST
  1511.         exp = ast.parse(inp, mode=mode)
  1512.         # observe something from xonsh
  1513. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1514. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1515.  
  1516. tests/test_parser.py:62: AttributeError
  1517. _____________________________________________________________________ test_minus_plus[0] _____________________________________________________________________
  1518.  
  1519. inp = '42 - 65 + 6', run = True, mode = 'eval'
  1520.  
  1521.     def check_ast(inp, run=True, mode='eval'):
  1522.         # expect a Python AST
  1523.         exp = ast.parse(inp, mode=mode)
  1524.         # observe something from xonsh
  1525. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1526. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1527.  
  1528. tests/test_parser.py:62: AttributeError
  1529. ____________________________________________________________________ test_minus_minus[0] _____________________________________________________________________
  1530.  
  1531. inp = '42 - 65 - 6', run = True, mode = 'eval'
  1532.  
  1533.     def check_ast(inp, run=True, mode='eval'):
  1534.         # expect a Python AST
  1535.         exp = ast.parse(inp, mode=mode)
  1536.         # observe something from xonsh
  1537. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1538. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1539.  
  1540. tests/test_parser.py:62: AttributeError
  1541. __________________________________________________________________ test_minus_plus_minus[0] __________________________________________________________________
  1542.  
  1543. inp = '42 - 65 + 6 - 28', run = True, mode = 'eval'
  1544.  
  1545.     def check_ast(inp, run=True, mode='eval'):
  1546.         # expect a Python AST
  1547.         exp = ast.parse(inp, mode=mode)
  1548.         # observe something from xonsh
  1549. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1550. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1551.  
  1552. tests/test_parser.py:62: AttributeError
  1553. _____________________________________________________________________ test_times_plus[0] _____________________________________________________________________
  1554.  
  1555. inp = '42 * 65 + 6', run = True, mode = 'eval'
  1556.  
  1557.     def check_ast(inp, run=True, mode='eval'):
  1558.         # expect a Python AST
  1559.         exp = ast.parse(inp, mode=mode)
  1560.         # observe something from xonsh
  1561. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1562. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1563.  
  1564. tests/test_parser.py:62: AttributeError
  1565. _____________________________________________________________________ test_plus_times[0] _____________________________________________________________________
  1566.  
  1567. inp = '42 + 65 * 6', run = True, mode = 'eval'
  1568.  
  1569.     def check_ast(inp, run=True, mode='eval'):
  1570.         # expect a Python AST
  1571.         exp = ast.parse(inp, mode=mode)
  1572.         # observe something from xonsh
  1573. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1574. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1575.  
  1576. tests/test_parser.py:62: AttributeError
  1577. ____________________________________________________________________ test_times_times[0] _____________________________________________________________________
  1578.  
  1579. inp = '42 * 65 * 6', run = True, mode = 'eval'
  1580.  
  1581.     def check_ast(inp, run=True, mode='eval'):
  1582.         # expect a Python AST
  1583.         exp = ast.parse(inp, mode=mode)
  1584.         # observe something from xonsh
  1585. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1586. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1587.  
  1588. tests/test_parser.py:62: AttributeError
  1589. _____________________________________________________________________ test_times_div[0] ______________________________________________________________________
  1590.  
  1591. inp = '42 * 65 / 6', run = True, mode = 'eval'
  1592.  
  1593.     def check_ast(inp, run=True, mode='eval'):
  1594.         # expect a Python AST
  1595.         exp = ast.parse(inp, mode=mode)
  1596.         # observe something from xonsh
  1597. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1598. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1599.  
  1600. tests/test_parser.py:62: AttributeError
  1601. ___________________________________________________________________ test_times_div_mod[0] ____________________________________________________________________
  1602.  
  1603. inp = '42 * 65 / 6 % 28', run = True, mode = 'eval'
  1604.  
  1605.     def check_ast(inp, run=True, mode='eval'):
  1606.         # expect a Python AST
  1607.         exp = ast.parse(inp, mode=mode)
  1608.         # observe something from xonsh
  1609. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1610. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1611.  
  1612. tests/test_parser.py:62: AttributeError
  1613. ________________________________________________________________ test_times_div_mod_floor[0] _________________________________________________________________
  1614.  
  1615. inp = '42 * 65 / 6 % 28 // 13', run = True, mode = 'eval'
  1616.  
  1617.     def check_ast(inp, run=True, mode='eval'):
  1618.         # expect a Python AST
  1619.         exp = ast.parse(inp, mode=mode)
  1620.         # observe something from xonsh
  1621. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1622. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1623.  
  1624. tests/test_parser.py:62: AttributeError
  1625. ______________________________________________________________________ test_str_str[0] _______________________________________________________________________
  1626.  
  1627. inp = '"hello" \'mom\'', run = True, mode = 'eval'
  1628.  
  1629.     def check_ast(inp, run=True, mode='eval'):
  1630.         # expect a Python AST
  1631.         exp = ast.parse(inp, mode=mode)
  1632.         # observe something from xonsh
  1633. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1634. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1635.  
  1636. tests/test_parser.py:62: AttributeError
  1637. ____________________________________________________________________ test_str_plus_str[0] ____________________________________________________________________
  1638.  
  1639. inp = '"hello" + \'mom\'', run = True, mode = 'eval'
  1640.  
  1641.     def check_ast(inp, run=True, mode='eval'):
  1642.         # expect a Python AST
  1643.         exp = ast.parse(inp, mode=mode)
  1644.         # observe something from xonsh
  1645. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1646. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1647.  
  1648. tests/test_parser.py:62: AttributeError
  1649. ___________________________________________________________________ test_str_times_int[0] ____________________________________________________________________
  1650.  
  1651. inp = '"hello" * 20', run = True, mode = 'eval'
  1652.  
  1653.     def check_ast(inp, run=True, mode='eval'):
  1654.         # expect a Python AST
  1655.         exp = ast.parse(inp, mode=mode)
  1656.         # observe something from xonsh
  1657. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1658. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1659.  
  1660. tests/test_parser.py:62: AttributeError
  1661. ___________________________________________________________________ test_int_times_str[0] ____________________________________________________________________
  1662.  
  1663. inp = '2*"hello"', run = True, mode = 'eval'
  1664.  
  1665.     def check_ast(inp, run=True, mode='eval'):
  1666.         # expect a Python AST
  1667.         exp = ast.parse(inp, mode=mode)
  1668.         # observe something from xonsh
  1669. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1670. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1671.  
  1672. tests/test_parser.py:62: AttributeError
  1673. __________________________________________________________________ test_group_plus_times[0] __________________________________________________________________
  1674.  
  1675. inp = '(42 + 65) * 20', run = True, mode = 'eval'
  1676.  
  1677.     def check_ast(inp, run=True, mode='eval'):
  1678.         # expect a Python AST
  1679.         exp = ast.parse(inp, mode=mode)
  1680.         # observe something from xonsh
  1681. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1682. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1683.  
  1684. tests/test_parser.py:62: AttributeError
  1685. __________________________________________________________________ test_plus_group_times[0] __________________________________________________________________
  1686.  
  1687. inp = '42 + (65 * 20)', run = True, mode = 'eval'
  1688.  
  1689.     def check_ast(inp, run=True, mode='eval'):
  1690.         # expect a Python AST
  1691.         exp = ast.parse(inp, mode=mode)
  1692.         # observe something from xonsh
  1693. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1694. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1695.  
  1696. tests/test_parser.py:62: AttributeError
  1697. _______________________________________________________________________ test_group[0] ________________________________________________________________________
  1698.  
  1699. inp = '(42)', run = True, mode = 'eval'
  1700.  
  1701.     def check_ast(inp, run=True, mode='eval'):
  1702.         # expect a Python AST
  1703.         exp = ast.parse(inp, mode=mode)
  1704.         # observe something from xonsh
  1705. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1706. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1707.  
  1708. tests/test_parser.py:62: AttributeError
  1709. _________________________________________________________________________ test_lt[0] _________________________________________________________________________
  1710.  
  1711. inp = '42 < 65', run = True, mode = 'eval'
  1712.  
  1713.     def check_ast(inp, run=True, mode='eval'):
  1714.         # expect a Python AST
  1715.         exp = ast.parse(inp, mode=mode)
  1716.         # observe something from xonsh
  1717. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1718. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1719.  
  1720. tests/test_parser.py:62: AttributeError
  1721. _________________________________________________________________________ test_gt[0] _________________________________________________________________________
  1722.  
  1723. inp = '42 > 65', run = True, mode = 'eval'
  1724.  
  1725.     def check_ast(inp, run=True, mode='eval'):
  1726.         # expect a Python AST
  1727.         exp = ast.parse(inp, mode=mode)
  1728.         # observe something from xonsh
  1729. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1730. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1731.  
  1732. tests/test_parser.py:62: AttributeError
  1733. _________________________________________________________________________ test_eq[0] _________________________________________________________________________
  1734.  
  1735. inp = '42 == 65', run = True, mode = 'eval'
  1736.  
  1737.     def check_ast(inp, run=True, mode='eval'):
  1738.         # expect a Python AST
  1739.         exp = ast.parse(inp, mode=mode)
  1740.         # observe something from xonsh
  1741. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1742. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1743.  
  1744. tests/test_parser.py:62: AttributeError
  1745. _________________________________________________________________________ test_le[0] _________________________________________________________________________
  1746.  
  1747. inp = '42 <= 65', run = True, mode = 'eval'
  1748.  
  1749.     def check_ast(inp, run=True, mode='eval'):
  1750.         # expect a Python AST
  1751.         exp = ast.parse(inp, mode=mode)
  1752.         # observe something from xonsh
  1753. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1754. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1755.  
  1756. tests/test_parser.py:62: AttributeError
  1757. _________________________________________________________________________ test_ge[0] _________________________________________________________________________
  1758.  
  1759. inp = '42 >= 65', run = True, mode = 'eval'
  1760.  
  1761.     def check_ast(inp, run=True, mode='eval'):
  1762.         # expect a Python AST
  1763.         exp = ast.parse(inp, mode=mode)
  1764.         # observe something from xonsh
  1765. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1766. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1767.  
  1768. tests/test_parser.py:62: AttributeError
  1769. _________________________________________________________________________ test_ne[0] _________________________________________________________________________
  1770.  
  1771. inp = '42 != 65', run = True, mode = 'eval'
  1772.  
  1773.     def check_ast(inp, run=True, mode='eval'):
  1774.         # expect a Python AST
  1775.         exp = ast.parse(inp, mode=mode)
  1776.         # observe something from xonsh
  1777. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1778. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1779.  
  1780. tests/test_parser.py:62: AttributeError
  1781. _________________________________________________________________________ test_in[0] _________________________________________________________________________
  1782.  
  1783. inp = '"4" in "65"', run = True, mode = 'eval'
  1784.  
  1785.     def check_ast(inp, run=True, mode='eval'):
  1786.         # expect a Python AST
  1787.         exp = ast.parse(inp, mode=mode)
  1788.         # observe something from xonsh
  1789. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1790. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1791.  
  1792. tests/test_parser.py:62: AttributeError
  1793. _________________________________________________________________________ test_is[0] _________________________________________________________________________
  1794.  
  1795. inp = '42 is 65', run = True, mode = 'eval'
  1796.  
  1797.     def check_ast(inp, run=True, mode='eval'):
  1798.         # expect a Python AST
  1799.         exp = ast.parse(inp, mode=mode)
  1800.         # observe something from xonsh
  1801. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1802. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1803.  
  1804. tests/test_parser.py:62: AttributeError
  1805. _______________________________________________________________________ test_not_in[0] _______________________________________________________________________
  1806.  
  1807. inp = '"4" not in "65"', run = True, mode = 'eval'
  1808.  
  1809.     def check_ast(inp, run=True, mode='eval'):
  1810.         # expect a Python AST
  1811.         exp = ast.parse(inp, mode=mode)
  1812.         # observe something from xonsh
  1813. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1814. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1815.  
  1816. tests/test_parser.py:62: AttributeError
  1817. _______________________________________________________________________ test_is_not[0] _______________________________________________________________________
  1818.  
  1819. inp = '42 is not 65', run = True, mode = 'eval'
  1820.  
  1821.     def check_ast(inp, run=True, mode='eval'):
  1822.         # expect a Python AST
  1823.         exp = ast.parse(inp, mode=mode)
  1824.         # observe something from xonsh
  1825. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1826. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1827.  
  1828. tests/test_parser.py:62: AttributeError
  1829. _______________________________________________________________________ test_lt_lt[0] ________________________________________________________________________
  1830.  
  1831. inp = '42 < 65 < 105', run = True, mode = 'eval'
  1832.  
  1833.     def check_ast(inp, run=True, mode='eval'):
  1834.         # expect a Python AST
  1835.         exp = ast.parse(inp, mode=mode)
  1836.         # observe something from xonsh
  1837. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1838. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1839.  
  1840. tests/test_parser.py:62: AttributeError
  1841. ______________________________________________________________________ test_lt_lt_lt[0] ______________________________________________________________________
  1842.  
  1843. inp = '42 < 65 < 105 < 77', run = True, mode = 'eval'
  1844.  
  1845.     def check_ast(inp, run=True, mode='eval'):
  1846.         # expect a Python AST
  1847.         exp = ast.parse(inp, mode=mode)
  1848.         # observe something from xonsh
  1849. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1850. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1851.  
  1852. tests/test_parser.py:62: AttributeError
  1853. ________________________________________________________________________ test_not[0] _________________________________________________________________________
  1854.  
  1855. inp = 'not 0', run = True, mode = 'eval'
  1856.  
  1857.     def check_ast(inp, run=True, mode='eval'):
  1858.         # expect a Python AST
  1859.         exp = ast.parse(inp, mode=mode)
  1860.         # observe something from xonsh
  1861. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1862. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1863.  
  1864. tests/test_parser.py:62: AttributeError
  1865. _________________________________________________________________________ test_or[0] _________________________________________________________________________
  1866.  
  1867. inp = '1 or 0', run = True, mode = 'eval'
  1868.  
  1869.     def check_ast(inp, run=True, mode='eval'):
  1870.         # expect a Python AST
  1871.         exp = ast.parse(inp, mode=mode)
  1872.         # observe something from xonsh
  1873. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1874. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1875.  
  1876. tests/test_parser.py:62: AttributeError
  1877. _______________________________________________________________________ test_or_or[0] ________________________________________________________________________
  1878.  
  1879. inp = '1 or 0 or 42', run = True, mode = 'eval'
  1880.  
  1881.     def check_ast(inp, run=True, mode='eval'):
  1882.         # expect a Python AST
  1883.         exp = ast.parse(inp, mode=mode)
  1884.         # observe something from xonsh
  1885. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1886. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1887.  
  1888. tests/test_parser.py:62: AttributeError
  1889. ________________________________________________________________________ test_and[0] _________________________________________________________________________
  1890.  
  1891. inp = '1 and 0', run = True, mode = 'eval'
  1892.  
  1893.     def check_ast(inp, run=True, mode='eval'):
  1894.         # expect a Python AST
  1895.         exp = ast.parse(inp, mode=mode)
  1896.         # observe something from xonsh
  1897. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1898. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1899.  
  1900. tests/test_parser.py:62: AttributeError
  1901. ______________________________________________________________________ test_and_and[0] _______________________________________________________________________
  1902.  
  1903. inp = '1 and 0 and 2', run = True, mode = 'eval'
  1904.  
  1905.     def check_ast(inp, run=True, mode='eval'):
  1906.         # expect a Python AST
  1907.         exp = ast.parse(inp, mode=mode)
  1908.         # observe something from xonsh
  1909. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1910. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1911.  
  1912. tests/test_parser.py:62: AttributeError
  1913. _______________________________________________________________________ test_and_or[0] _______________________________________________________________________
  1914.  
  1915. inp = '1 and 0 or 2', run = True, mode = 'eval'
  1916.  
  1917.     def check_ast(inp, run=True, mode='eval'):
  1918.         # expect a Python AST
  1919.         exp = ast.parse(inp, mode=mode)
  1920.         # observe something from xonsh
  1921. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1922. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1923.  
  1924. tests/test_parser.py:62: AttributeError
  1925. _______________________________________________________________________ test_or_and[0] _______________________________________________________________________
  1926.  
  1927. inp = '1 or 0 and 2', run = True, mode = 'eval'
  1928.  
  1929.     def check_ast(inp, run=True, mode='eval'):
  1930.         # expect a Python AST
  1931.         exp = ast.parse(inp, mode=mode)
  1932.         # observe something from xonsh
  1933. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1934. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1935.  
  1936. tests/test_parser.py:62: AttributeError
  1937. ___________________________________________________________________ test_group_and_and[0] ____________________________________________________________________
  1938.  
  1939. inp = '(1 and 0) and 2', run = True, mode = 'eval'
  1940.  
  1941.     def check_ast(inp, run=True, mode='eval'):
  1942.         # expect a Python AST
  1943.         exp = ast.parse(inp, mode=mode)
  1944.         # observe something from xonsh
  1945. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1946. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1947.  
  1948. tests/test_parser.py:62: AttributeError
  1949. ____________________________________________________________________ test_group_and_or[0] ____________________________________________________________________
  1950.  
  1951. inp = '(1 and 0) or 2', run = True, mode = 'eval'
  1952.  
  1953.     def check_ast(inp, run=True, mode='eval'):
  1954.         # expect a Python AST
  1955.         exp = ast.parse(inp, mode=mode)
  1956.         # observe something from xonsh
  1957. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1958. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1959.  
  1960. tests/test_parser.py:62: AttributeError
  1961. ____________________________________________________________________ test_if_else_expr[0] ____________________________________________________________________
  1962.  
  1963. inp = '42 if True else 65', run = True, mode = 'eval'
  1964.  
  1965.     def check_ast(inp, run=True, mode='eval'):
  1966.         # expect a Python AST
  1967.         exp = ast.parse(inp, mode=mode)
  1968.         # observe something from xonsh
  1969. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1970. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1971.  
  1972. tests/test_parser.py:62: AttributeError
  1973. _________________________________________________________________ test_if_else_expr_expr[0] __________________________________________________________________
  1974.  
  1975. inp = '42+5 if 1 == 2 else 65-5', run = True, mode = 'eval'
  1976.  
  1977.     def check_ast(inp, run=True, mode='eval'):
  1978.         # expect a Python AST
  1979.         exp = ast.parse(inp, mode=mode)
  1980.         # observe something from xonsh
  1981. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1982. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1983.  
  1984. tests/test_parser.py:62: AttributeError
  1985. ______________________________________________________________________ test_str_idx[0] _______________________________________________________________________
  1986.  
  1987. inp = '"hello"[0]', run = True, mode = 'eval'
  1988.  
  1989.     def check_ast(inp, run=True, mode='eval'):
  1990.         # expect a Python AST
  1991.         exp = ast.parse(inp, mode=mode)
  1992.         # observe something from xonsh
  1993. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  1994. E       AttributeError: 'NoneType' object has no attribute 'parse'
  1995.  
  1996. tests/test_parser.py:62: AttributeError
  1997. _____________________________________________________________________ test_str_slice[0] ______________________________________________________________________
  1998.  
  1999. inp = '"hello"[0:3]', run = True, mode = 'eval'
  2000.  
  2001.     def check_ast(inp, run=True, mode='eval'):
  2002.         # expect a Python AST
  2003.         exp = ast.parse(inp, mode=mode)
  2004.         # observe something from xonsh
  2005. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2006. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2007.  
  2008. tests/test_parser.py:62: AttributeError
  2009. ______________________________________________________________________ test_str_step[0] ______________________________________________________________________
  2010.  
  2011. inp = '"hello"[0:3:1]', run = True, mode = 'eval'
  2012.  
  2013.     def check_ast(inp, run=True, mode='eval'):
  2014.         # expect a Python AST
  2015.         exp = ast.parse(inp, mode=mode)
  2016.         # observe something from xonsh
  2017. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2018. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2019.  
  2020. tests/test_parser.py:62: AttributeError
  2021. ___________________________________________________________________ test_str_slice_all[0] ____________________________________________________________________
  2022.  
  2023. inp = '"hello"[:]', run = True, mode = 'eval'
  2024.  
  2025.     def check_ast(inp, run=True, mode='eval'):
  2026.         # expect a Python AST
  2027.         exp = ast.parse(inp, mode=mode)
  2028.         # observe something from xonsh
  2029. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2030. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2031.  
  2032. tests/test_parser.py:62: AttributeError
  2033. __________________________________________________________________ test_str_slice_upper[0] ___________________________________________________________________
  2034.  
  2035. inp = '"hello"[5:]', run = True, mode = 'eval'
  2036.  
  2037.     def check_ast(inp, run=True, mode='eval'):
  2038.         # expect a Python AST
  2039.         exp = ast.parse(inp, mode=mode)
  2040.         # observe something from xonsh
  2041. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2042. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2043.  
  2044. tests/test_parser.py:62: AttributeError
  2045. __________________________________________________________________ test_str_slice_lower[0] ___________________________________________________________________
  2046.  
  2047. inp = '"hello"[:3]', run = True, mode = 'eval'
  2048.  
  2049.     def check_ast(inp, run=True, mode='eval'):
  2050.         # expect a Python AST
  2051.         exp = ast.parse(inp, mode=mode)
  2052.         # observe something from xonsh
  2053. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2054. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2055.  
  2056. tests/test_parser.py:62: AttributeError
  2057. __________________________________________________________________ test_str_slice_other[0] ___________________________________________________________________
  2058.  
  2059. inp = '"hello"[::2]', run = True, mode = 'eval'
  2060.  
  2061.     def check_ast(inp, run=True, mode='eval'):
  2062.         # expect a Python AST
  2063.         exp = ast.parse(inp, mode=mode)
  2064.         # observe something from xonsh
  2065. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2066. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2067.  
  2068. tests/test_parser.py:62: AttributeError
  2069. _______________________________________________________________ test_str_slice_lower_other[0] ________________________________________________________________
  2070.  
  2071. inp = '"hello"[:3:2]', run = True, mode = 'eval'
  2072.  
  2073.     def check_ast(inp, run=True, mode='eval'):
  2074.         # expect a Python AST
  2075.         exp = ast.parse(inp, mode=mode)
  2076.         # observe something from xonsh
  2077. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2078. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2079.  
  2080. tests/test_parser.py:62: AttributeError
  2081. _______________________________________________________________ test_str_slice_upper_other[0] ________________________________________________________________
  2082.  
  2083. inp = '"hello"[3::2]', run = True, mode = 'eval'
  2084.  
  2085.     def check_ast(inp, run=True, mode='eval'):
  2086.         # expect a Python AST
  2087.         exp = ast.parse(inp, mode=mode)
  2088.         # observe something from xonsh
  2089. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2090. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2091.  
  2092. tests/test_parser.py:62: AttributeError
  2093. _____________________________________________________________________ test_list_empty[0] _____________________________________________________________________
  2094.  
  2095. inp = '[]', run = True, mode = 'eval'
  2096.  
  2097.     def check_ast(inp, run=True, mode='eval'):
  2098.         # expect a Python AST
  2099.         exp = ast.parse(inp, mode=mode)
  2100.         # observe something from xonsh
  2101. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2102. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2103.  
  2104. tests/test_parser.py:62: AttributeError
  2105. ______________________________________________________________________ test_list_one[0] ______________________________________________________________________
  2106.  
  2107. inp = '[1]', run = True, mode = 'eval'
  2108.  
  2109.     def check_ast(inp, run=True, mode='eval'):
  2110.         # expect a Python AST
  2111.         exp = ast.parse(inp, mode=mode)
  2112.         # observe something from xonsh
  2113. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2114. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2115.  
  2116. tests/test_parser.py:62: AttributeError
  2117. ___________________________________________________________________ test_list_one_comma[0] ___________________________________________________________________
  2118.  
  2119. inp = '[1,]', run = True, mode = 'eval'
  2120.  
  2121.     def check_ast(inp, run=True, mode='eval'):
  2122.         # expect a Python AST
  2123.         exp = ast.parse(inp, mode=mode)
  2124.         # observe something from xonsh
  2125. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2126. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2127.  
  2128. tests/test_parser.py:62: AttributeError
  2129. ______________________________________________________________________ test_list_two[0] ______________________________________________________________________
  2130.  
  2131. inp = '[1, 42]', run = True, mode = 'eval'
  2132.  
  2133.     def check_ast(inp, run=True, mode='eval'):
  2134.         # expect a Python AST
  2135.         exp = ast.parse(inp, mode=mode)
  2136.         # observe something from xonsh
  2137. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2138. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2139.  
  2140. tests/test_parser.py:62: AttributeError
  2141. _____________________________________________________________________ test_list_three[0] _____________________________________________________________________
  2142.  
  2143. inp = '[1, 42, 65]', run = True, mode = 'eval'
  2144.  
  2145.     def check_ast(inp, run=True, mode='eval'):
  2146.         # expect a Python AST
  2147.         exp = ast.parse(inp, mode=mode)
  2148.         # observe something from xonsh
  2149. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2150. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2151.  
  2152. tests/test_parser.py:62: AttributeError
  2153. __________________________________________________________________ test_list_three_comma[0] __________________________________________________________________
  2154.  
  2155. inp = '[1, 42, 65,]', run = True, mode = 'eval'
  2156.  
  2157.     def check_ast(inp, run=True, mode='eval'):
  2158.         # expect a Python AST
  2159.         exp = ast.parse(inp, mode=mode)
  2160.         # observe something from xonsh
  2161. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2162. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2163.  
  2164. tests/test_parser.py:62: AttributeError
  2165. __________________________________________________________________ test_list_one_nested[0] ___________________________________________________________________
  2166.  
  2167. inp = '[[1]]', run = True, mode = 'eval'
  2168.  
  2169.     def check_ast(inp, run=True, mode='eval'):
  2170.         # expect a Python AST
  2171.         exp = ast.parse(inp, mode=mode)
  2172.         # observe something from xonsh
  2173. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2174. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2175.  
  2176. tests/test_parser.py:62: AttributeError
  2177. _______________________________________________________________ test_list_list_four_nested[0] ________________________________________________________________
  2178.  
  2179. inp = '[[1], [2], [3], [4]]', run = True, mode = 'eval'
  2180.  
  2181.     def check_ast(inp, run=True, mode='eval'):
  2182.         # expect a Python AST
  2183.         exp = ast.parse(inp, mode=mode)
  2184.         # observe something from xonsh
  2185. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2186. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2187.  
  2188. tests/test_parser.py:62: AttributeError
  2189. ______________________________________________________________ test_list_tuple_three_nested[0] _______________________________________________________________
  2190.  
  2191. inp = '[(1,), (2,), (3,)]', run = True, mode = 'eval'
  2192.  
  2193.     def check_ast(inp, run=True, mode='eval'):
  2194.         # expect a Python AST
  2195.         exp = ast.parse(inp, mode=mode)
  2196.         # observe something from xonsh
  2197. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2198. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2199.  
  2200. tests/test_parser.py:62: AttributeError
  2201. ____________________________________________________________ test_list_set_tuple_three_nested[0] _____________________________________________________________
  2202.  
  2203. inp = '[{(1,)}, {(2,)}, {(3,)}]', run = True, mode = 'eval'
  2204.  
  2205.     def check_ast(inp, run=True, mode='eval'):
  2206.         # expect a Python AST
  2207.         exp = ast.parse(inp, mode=mode)
  2208.         # observe something from xonsh
  2209. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2210. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2211.  
  2212. tests/test_parser.py:62: AttributeError
  2213. _______________________________________________________________ test_list_tuple_one_nested[0] ________________________________________________________________
  2214.  
  2215. inp = '[(1,)]', run = True, mode = 'eval'
  2216.  
  2217.     def check_ast(inp, run=True, mode='eval'):
  2218.         # expect a Python AST
  2219.         exp = ast.parse(inp, mode=mode)
  2220.         # observe something from xonsh
  2221. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2222. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2223.  
  2224. tests/test_parser.py:62: AttributeError
  2225. _______________________________________________________________ test_tuple_tuple_one_nested[0] _______________________________________________________________
  2226.  
  2227. inp = '((1,),)', run = True, mode = 'eval'
  2228.  
  2229.     def check_ast(inp, run=True, mode='eval'):
  2230.         # expect a Python AST
  2231.         exp = ast.parse(inp, mode=mode)
  2232.         # observe something from xonsh
  2233. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2234. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2235.  
  2236. tests/test_parser.py:62: AttributeError
  2237. ________________________________________________________________ test_dict_list_one_nested[0] ________________________________________________________________
  2238.  
  2239. inp = '{1: [2]}', run = True, mode = 'eval'
  2240.  
  2241.     def check_ast(inp, run=True, mode='eval'):
  2242.         # expect a Python AST
  2243.         exp = ast.parse(inp, mode=mode)
  2244.         # observe something from xonsh
  2245. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2246. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2247.  
  2248. tests/test_parser.py:62: AttributeError
  2249. _____________________________________________________________ test_dict_list_one_nested_comma[0] _____________________________________________________________
  2250.  
  2251. inp = '{1: [2],}', run = True, mode = 'eval'
  2252.  
  2253.     def check_ast(inp, run=True, mode='eval'):
  2254.         # expect a Python AST
  2255.         exp = ast.parse(inp, mode=mode)
  2256.         # observe something from xonsh
  2257. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2258. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2259.  
  2260. tests/test_parser.py:62: AttributeError
  2261. _______________________________________________________________ test_dict_tuple_one_nested[0] ________________________________________________________________
  2262.  
  2263. inp = '{1: (2,)}', run = True, mode = 'eval'
  2264.  
  2265.     def check_ast(inp, run=True, mode='eval'):
  2266.         # expect a Python AST
  2267.         exp = ast.parse(inp, mode=mode)
  2268.         # observe something from xonsh
  2269. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2270. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2271.  
  2272. tests/test_parser.py:62: AttributeError
  2273. ____________________________________________________________ test_dict_tuple_one_nested_comma[0] _____________________________________________________________
  2274.  
  2275. inp = '{1: (2,),}', run = True, mode = 'eval'
  2276.  
  2277.     def check_ast(inp, run=True, mode='eval'):
  2278.         # expect a Python AST
  2279.         exp = ast.parse(inp, mode=mode)
  2280.         # observe something from xonsh
  2281. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2282. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2283.  
  2284. tests/test_parser.py:62: AttributeError
  2285. ________________________________________________________________ test_dict_list_two_nested[0] ________________________________________________________________
  2286.  
  2287. inp = '{1: [2], 3: [4]}', run = True, mode = 'eval'
  2288.  
  2289.     def check_ast(inp, run=True, mode='eval'):
  2290.         # expect a Python AST
  2291.         exp = ast.parse(inp, mode=mode)
  2292.         # observe something from xonsh
  2293. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2294. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2295.  
  2296. tests/test_parser.py:62: AttributeError
  2297. ________________________________________________________________ test_set_tuple_one_nested[0] ________________________________________________________________
  2298.  
  2299. inp = '{(1,)}', run = True, mode = 'eval'
  2300.  
  2301.     def check_ast(inp, run=True, mode='eval'):
  2302.         # expect a Python AST
  2303.         exp = ast.parse(inp, mode=mode)
  2304.         # observe something from xonsh
  2305. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2306. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2307.  
  2308. tests/test_parser.py:62: AttributeError
  2309. ________________________________________________________________ test_set_tuple_two_nested[0] ________________________________________________________________
  2310.  
  2311. inp = '{(1,), (2,)}', run = True, mode = 'eval'
  2312.  
  2313.     def check_ast(inp, run=True, mode='eval'):
  2314.         # expect a Python AST
  2315.         exp = ast.parse(inp, mode=mode)
  2316.         # observe something from xonsh
  2317. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2318. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2319.  
  2320. tests/test_parser.py:62: AttributeError
  2321. ____________________________________________________________________ test_tuple_empty[0] _____________________________________________________________________
  2322.  
  2323. inp = '()', run = True, mode = 'eval'
  2324.  
  2325.     def check_ast(inp, run=True, mode='eval'):
  2326.         # expect a Python AST
  2327.         exp = ast.parse(inp, mode=mode)
  2328.         # observe something from xonsh
  2329. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2330. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2331.  
  2332. tests/test_parser.py:62: AttributeError
  2333. ___________________________________________________________________ test_tuple_one_bare[0] ___________________________________________________________________
  2334.  
  2335. inp = '1,', run = True, mode = 'eval'
  2336.  
  2337.     def check_ast(inp, run=True, mode='eval'):
  2338.         # expect a Python AST
  2339.         exp = ast.parse(inp, mode=mode)
  2340.         # observe something from xonsh
  2341. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2342. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2343.  
  2344. tests/test_parser.py:62: AttributeError
  2345. ___________________________________________________________________ test_tuple_two_bare[0] ___________________________________________________________________
  2346.  
  2347. inp = '1, 42', run = True, mode = 'eval'
  2348.  
  2349.     def check_ast(inp, run=True, mode='eval'):
  2350.         # expect a Python AST
  2351.         exp = ast.parse(inp, mode=mode)
  2352.         # observe something from xonsh
  2353. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2354. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2355.  
  2356. tests/test_parser.py:62: AttributeError
  2357. __________________________________________________________________ test_tuple_three_bare[0] __________________________________________________________________
  2358.  
  2359. inp = '1, 42, 65', run = True, mode = 'eval'
  2360.  
  2361.     def check_ast(inp, run=True, mode='eval'):
  2362.         # expect a Python AST
  2363.         exp = ast.parse(inp, mode=mode)
  2364.         # observe something from xonsh
  2365. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2366. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2367.  
  2368. tests/test_parser.py:62: AttributeError
  2369. _______________________________________________________________ test_tuple_three_bare_comma[0] _______________________________________________________________
  2370.  
  2371. inp = '1, 42, 65,', run = True, mode = 'eval'
  2372.  
  2373.     def check_ast(inp, run=True, mode='eval'):
  2374.         # expect a Python AST
  2375.         exp = ast.parse(inp, mode=mode)
  2376.         # observe something from xonsh
  2377. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2378. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2379.  
  2380. tests/test_parser.py:62: AttributeError
  2381. __________________________________________________________________ test_tuple_one_comma[0] ___________________________________________________________________
  2382.  
  2383. inp = '(1,)', run = True, mode = 'eval'
  2384.  
  2385.     def check_ast(inp, run=True, mode='eval'):
  2386.         # expect a Python AST
  2387.         exp = ast.parse(inp, mode=mode)
  2388.         # observe something from xonsh
  2389. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2390. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2391.  
  2392. tests/test_parser.py:62: AttributeError
  2393. _____________________________________________________________________ test_tuple_two[0] ______________________________________________________________________
  2394.  
  2395. inp = '(1, 42)', run = True, mode = 'eval'
  2396.  
  2397.     def check_ast(inp, run=True, mode='eval'):
  2398.         # expect a Python AST
  2399.         exp = ast.parse(inp, mode=mode)
  2400.         # observe something from xonsh
  2401. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2402. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2403.  
  2404. tests/test_parser.py:62: AttributeError
  2405. ____________________________________________________________________ test_tuple_three[0] _____________________________________________________________________
  2406.  
  2407. inp = '(1, 42, 65)', run = True, mode = 'eval'
  2408.  
  2409.     def check_ast(inp, run=True, mode='eval'):
  2410.         # expect a Python AST
  2411.         exp = ast.parse(inp, mode=mode)
  2412.         # observe something from xonsh
  2413. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2414. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2415.  
  2416. tests/test_parser.py:62: AttributeError
  2417. _________________________________________________________________ test_tuple_three_comma[0] __________________________________________________________________
  2418.  
  2419. inp = '(1, 42, 65,)', run = True, mode = 'eval'
  2420.  
  2421.     def check_ast(inp, run=True, mode='eval'):
  2422.         # expect a Python AST
  2423.         exp = ast.parse(inp, mode=mode)
  2424.         # observe something from xonsh
  2425. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2426. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2427.  
  2428. tests/test_parser.py:62: AttributeError
  2429. ______________________________________________________________________ test_set_one[0] _______________________________________________________________________
  2430.  
  2431. inp = '{42}', run = True, mode = 'eval'
  2432.  
  2433.     def check_ast(inp, run=True, mode='eval'):
  2434.         # expect a Python AST
  2435.         exp = ast.parse(inp, mode=mode)
  2436.         # observe something from xonsh
  2437. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2438. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2439.  
  2440. tests/test_parser.py:62: AttributeError
  2441. ___________________________________________________________________ test_set_one_comma[0] ____________________________________________________________________
  2442.  
  2443. inp = '{42,}', run = True, mode = 'eval'
  2444.  
  2445.     def check_ast(inp, run=True, mode='eval'):
  2446.         # expect a Python AST
  2447.         exp = ast.parse(inp, mode=mode)
  2448.         # observe something from xonsh
  2449. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2450. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2451.  
  2452. tests/test_parser.py:62: AttributeError
  2453. ______________________________________________________________________ test_set_two[0] _______________________________________________________________________
  2454.  
  2455. inp = '{42, 65}', run = True, mode = 'eval'
  2456.  
  2457.     def check_ast(inp, run=True, mode='eval'):
  2458.         # expect a Python AST
  2459.         exp = ast.parse(inp, mode=mode)
  2460.         # observe something from xonsh
  2461. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2462. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2463.  
  2464. tests/test_parser.py:62: AttributeError
  2465. ___________________________________________________________________ test_set_two_comma[0] ____________________________________________________________________
  2466.  
  2467. inp = '{42, 65,}', run = True, mode = 'eval'
  2468.  
  2469.     def check_ast(inp, run=True, mode='eval'):
  2470.         # expect a Python AST
  2471.         exp = ast.parse(inp, mode=mode)
  2472.         # observe something from xonsh
  2473. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2474. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2475.  
  2476. tests/test_parser.py:62: AttributeError
  2477. _____________________________________________________________________ test_set_three[0] ______________________________________________________________________
  2478.  
  2479. inp = '{42, 65, 45}', run = True, mode = 'eval'
  2480.  
  2481.     def check_ast(inp, run=True, mode='eval'):
  2482.         # expect a Python AST
  2483.         exp = ast.parse(inp, mode=mode)
  2484.         # observe something from xonsh
  2485. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2486. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2487.  
  2488. tests/test_parser.py:62: AttributeError
  2489. _____________________________________________________________________ test_dict_empty[0] _____________________________________________________________________
  2490.  
  2491. inp = '{}', run = True, mode = 'eval'
  2492.  
  2493.     def check_ast(inp, run=True, mode='eval'):
  2494.         # expect a Python AST
  2495.         exp = ast.parse(inp, mode=mode)
  2496.         # observe something from xonsh
  2497. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2498. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2499.  
  2500. tests/test_parser.py:62: AttributeError
  2501. ______________________________________________________________________ test_dict_one[0] ______________________________________________________________________
  2502.  
  2503. inp = '{42: 65}', run = True, mode = 'eval'
  2504.  
  2505.     def check_ast(inp, run=True, mode='eval'):
  2506.         # expect a Python AST
  2507.         exp = ast.parse(inp, mode=mode)
  2508.         # observe something from xonsh
  2509. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2510. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2511.  
  2512. tests/test_parser.py:62: AttributeError
  2513. ___________________________________________________________________ test_dict_one_comma[0] ___________________________________________________________________
  2514.  
  2515. inp = '{42: 65,}', run = True, mode = 'eval'
  2516.  
  2517.     def check_ast(inp, run=True, mode='eval'):
  2518.         # expect a Python AST
  2519.         exp = ast.parse(inp, mode=mode)
  2520.         # observe something from xonsh
  2521. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2522. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2523.  
  2524. tests/test_parser.py:62: AttributeError
  2525. ______________________________________________________________________ test_dict_two[0] ______________________________________________________________________
  2526.  
  2527. inp = '{42: 65, 6: 28}', run = True, mode = 'eval'
  2528.  
  2529.     def check_ast(inp, run=True, mode='eval'):
  2530.         # expect a Python AST
  2531.         exp = ast.parse(inp, mode=mode)
  2532.         # observe something from xonsh
  2533. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2534. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2535.  
  2536. tests/test_parser.py:62: AttributeError
  2537. ___________________________________________________________________ test_dict_two_comma[0] ___________________________________________________________________
  2538.  
  2539. inp = '{42: 65, 6: 28,}', run = True, mode = 'eval'
  2540.  
  2541.     def check_ast(inp, run=True, mode='eval'):
  2542.         # expect a Python AST
  2543.         exp = ast.parse(inp, mode=mode)
  2544.         # observe something from xonsh
  2545. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2546. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2547.  
  2548. tests/test_parser.py:62: AttributeError
  2549. _____________________________________________________________________ test_dict_three[0] _____________________________________________________________________
  2550.  
  2551. inp = '{42: 65, 6: 28, 1: 2}', run = True, mode = 'eval'
  2552.  
  2553.     def check_ast(inp, run=True, mode='eval'):
  2554.         # expect a Python AST
  2555.         exp = ast.parse(inp, mode=mode)
  2556.         # observe something from xonsh
  2557. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2558. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2559.  
  2560. tests/test_parser.py:62: AttributeError
  2561. _______________________________________________________________ test_dict_from_dict_two_xy[0] ________________________________________________________________
  2562.  
  2563. inp = '{"x": 1, **{"y": 2}}', run = True, mode = 'eval'
  2564.  
  2565.     def check_ast(inp, run=True, mode='eval'):
  2566.         # expect a Python AST
  2567.         exp = ast.parse(inp, mode=mode)
  2568.         # observe something from xonsh
  2569. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2570. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2571.  
  2572. tests/test_parser.py:62: AttributeError
  2573. _____________________________________________________________ test_dict_from_dict_two_x_first[0] _____________________________________________________________
  2574.  
  2575. inp = '{"x": 1, **{"x": 2}}', run = True, mode = 'eval'
  2576.  
  2577.     def check_ast(inp, run=True, mode='eval'):
  2578.         # expect a Python AST
  2579.         exp = ast.parse(inp, mode=mode)
  2580.         # observe something from xonsh
  2581. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2582. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2583.  
  2584. tests/test_parser.py:62: AttributeError
  2585. ____________________________________________________________ test_dict_from_dict_two_x_second[0] _____________________________________________________________
  2586.  
  2587. inp = '{**{"x": 2}, "x": 1}', run = True, mode = 'eval'
  2588.  
  2589.     def check_ast(inp, run=True, mode='eval'):
  2590.         # expect a Python AST
  2591.         exp = ast.parse(inp, mode=mode)
  2592.         # observe something from xonsh
  2593. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2594. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2595.  
  2596. tests/test_parser.py:62: AttributeError
  2597. _________________________________________________________________ test_unpack_range_tuple[0] _________________________________________________________________
  2598.  
  2599. inp = '*range(4),\n', run = True, mode = 'exec'
  2600.  
  2601.     def check_stmts(inp, run=True, mode='exec'):
  2602.         if not inp.endswith('\n'):
  2603.             inp += '\n'
  2604. >       check_ast(inp, run=run, mode=mode)
  2605.  
  2606. tests/test_parser.py:72:
  2607. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2608.  
  2609. inp = '*range(4),\n', run = True, mode = 'exec'
  2610.  
  2611.     def check_ast(inp, run=True, mode='eval'):
  2612.         # expect a Python AST
  2613.         exp = ast.parse(inp, mode=mode)
  2614.         # observe something from xonsh
  2615. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2616. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2617.  
  2618. tests/test_parser.py:62: AttributeError
  2619. ________________________________________________________________ test_unpack_range_tuple_4[0] ________________________________________________________________
  2620.  
  2621. inp = '*range(4), 4\n', run = True, mode = 'exec'
  2622.  
  2623.     def check_stmts(inp, run=True, mode='exec'):
  2624.         if not inp.endswith('\n'):
  2625.             inp += '\n'
  2626. >       check_ast(inp, run=run, mode=mode)
  2627.  
  2628. tests/test_parser.py:72:
  2629. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2630.  
  2631. inp = '*range(4), 4\n', run = True, mode = 'exec'
  2632.  
  2633.     def check_ast(inp, run=True, mode='eval'):
  2634.         # expect a Python AST
  2635.         exp = ast.parse(inp, mode=mode)
  2636.         # observe something from xonsh
  2637. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2638. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2639.  
  2640. tests/test_parser.py:62: AttributeError
  2641. _____________________________________________________________ test_unpack_range_tuple_parens[0] ______________________________________________________________
  2642.  
  2643. inp = '(*range(4),)', run = True, mode = 'eval'
  2644.  
  2645.     def check_ast(inp, run=True, mode='eval'):
  2646.         # expect a Python AST
  2647.         exp = ast.parse(inp, mode=mode)
  2648.         # observe something from xonsh
  2649. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2650. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2651.  
  2652. tests/test_parser.py:62: AttributeError
  2653. ____________________________________________________________ test_unpack_range_tuple_parens_4[0] _____________________________________________________________
  2654.  
  2655. inp = '(*range(4), 4)', run = True, mode = 'eval'
  2656.  
  2657.     def check_ast(inp, run=True, mode='eval'):
  2658.         # expect a Python AST
  2659.         exp = ast.parse(inp, mode=mode)
  2660.         # observe something from xonsh
  2661. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2662. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2663.  
  2664. tests/test_parser.py:62: AttributeError
  2665. _________________________________________________________________ test_unpack_range_list[0] __________________________________________________________________
  2666.  
  2667. inp = '[*range(4)]', run = True, mode = 'eval'
  2668.  
  2669.     def check_ast(inp, run=True, mode='eval'):
  2670.         # expect a Python AST
  2671.         exp = ast.parse(inp, mode=mode)
  2672.         # observe something from xonsh
  2673. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2674. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2675.  
  2676. tests/test_parser.py:62: AttributeError
  2677. ________________________________________________________________ test_unpack_range_list_4[0] _________________________________________________________________
  2678.  
  2679. inp = '[*range(4), 4]', run = True, mode = 'eval'
  2680.  
  2681.     def check_ast(inp, run=True, mode='eval'):
  2682.         # expect a Python AST
  2683.         exp = ast.parse(inp, mode=mode)
  2684.         # observe something from xonsh
  2685. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2686. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2687.  
  2688. tests/test_parser.py:62: AttributeError
  2689. __________________________________________________________________ test_unpack_range_set[0] __________________________________________________________________
  2690.  
  2691. inp = '{*range(4)}', run = True, mode = 'eval'
  2692.  
  2693.     def check_ast(inp, run=True, mode='eval'):
  2694.         # expect a Python AST
  2695.         exp = ast.parse(inp, mode=mode)
  2696.         # observe something from xonsh
  2697. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2698. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2699.  
  2700. tests/test_parser.py:62: AttributeError
  2701. _________________________________________________________________ test_unpack_range_set_4[0] _________________________________________________________________
  2702.  
  2703. inp = '{*range(4), 4}', run = True, mode = 'eval'
  2704.  
  2705.     def check_ast(inp, run=True, mode='eval'):
  2706.         # expect a Python AST
  2707.         exp = ast.parse(inp, mode=mode)
  2708.         # observe something from xonsh
  2709. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2710. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2711.  
  2712. tests/test_parser.py:62: AttributeError
  2713. ________________________________________________________________________ test_true[0] ________________________________________________________________________
  2714.  
  2715. inp = 'True', run = True, mode = 'eval'
  2716.  
  2717.     def check_ast(inp, run=True, mode='eval'):
  2718.         # expect a Python AST
  2719.         exp = ast.parse(inp, mode=mode)
  2720.         # observe something from xonsh
  2721. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2722. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2723.  
  2724. tests/test_parser.py:62: AttributeError
  2725. _______________________________________________________________________ test_false[0] ________________________________________________________________________
  2726.  
  2727. inp = 'False', run = True, mode = 'eval'
  2728.  
  2729.     def check_ast(inp, run=True, mode='eval'):
  2730.         # expect a Python AST
  2731.         exp = ast.parse(inp, mode=mode)
  2732.         # observe something from xonsh
  2733. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2734. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2735.  
  2736. tests/test_parser.py:62: AttributeError
  2737. ________________________________________________________________________ test_none[0] ________________________________________________________________________
  2738.  
  2739. inp = 'None', run = True, mode = 'eval'
  2740.  
  2741.     def check_ast(inp, run=True, mode='eval'):
  2742.         # expect a Python AST
  2743.         exp = ast.parse(inp, mode=mode)
  2744.         # observe something from xonsh
  2745. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2746. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2747.  
  2748. tests/test_parser.py:62: AttributeError
  2749. ______________________________________________________________________ test_elipssis[0] ______________________________________________________________________
  2750.  
  2751. inp = '...', run = True, mode = 'eval'
  2752.  
  2753.     def check_ast(inp, run=True, mode='eval'):
  2754.         # expect a Python AST
  2755.         exp = ast.parse(inp, mode=mode)
  2756.         # observe something from xonsh
  2757. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2758. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2759.  
  2760. tests/test_parser.py:62: AttributeError
  2761. ________________________________________________________________ test_not_implemented_name[0] ________________________________________________________________
  2762.  
  2763. inp = 'NotImplemented', run = True, mode = 'eval'
  2764.  
  2765.     def check_ast(inp, run=True, mode='eval'):
  2766.         # expect a Python AST
  2767.         exp = ast.parse(inp, mode=mode)
  2768.         # observe something from xonsh
  2769. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2770. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2771.  
  2772. tests/test_parser.py:62: AttributeError
  2773. ______________________________________________________________________ test_genexpr[0] _______________________________________________________________________
  2774.  
  2775. inp = '(x for x in "mom")', run = True, mode = 'eval'
  2776.  
  2777.     def check_ast(inp, run=True, mode='eval'):
  2778.         # expect a Python AST
  2779.         exp = ast.parse(inp, mode=mode)
  2780.         # observe something from xonsh
  2781. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2782. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2783.  
  2784. tests/test_parser.py:62: AttributeError
  2785. _____________________________________________________________________ test_genexpr_if[0] _____________________________________________________________________
  2786.  
  2787. inp = '(x for x in "mom" if True)', run = True, mode = 'eval'
  2788.  
  2789.     def check_ast(inp, run=True, mode='eval'):
  2790.         # expect a Python AST
  2791.         exp = ast.parse(inp, mode=mode)
  2792.         # observe something from xonsh
  2793. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2794. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2795.  
  2796. tests/test_parser.py:62: AttributeError
  2797. ___________________________________________________________________ test_genexpr_if_and[0] ___________________________________________________________________
  2798.  
  2799. inp = '(x for x in "mom" if True and x == "m")', run = True, mode = 'eval'
  2800.  
  2801.     def check_ast(inp, run=True, mode='eval'):
  2802.         # expect a Python AST
  2803.         exp = ast.parse(inp, mode=mode)
  2804.         # observe something from xonsh
  2805. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2806. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2807.  
  2808. tests/test_parser.py:62: AttributeError
  2809. ____________________________________________________________________ test_dbl_genexpr[0] _____________________________________________________________________
  2810.  
  2811. inp = '(x+y for x in "mom" for y in "dad")', run = True, mode = 'eval'
  2812.  
  2813.     def check_ast(inp, run=True, mode='eval'):
  2814.         # expect a Python AST
  2815.         exp = ast.parse(inp, mode=mode)
  2816.         # observe something from xonsh
  2817. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2818. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2819.  
  2820. tests/test_parser.py:62: AttributeError
  2821. _________________________________________________________________ test_genexpr_if_genexpr[0] _________________________________________________________________
  2822.  
  2823. inp = '(x+y for x in "mom" if True for y in "dad")', run = True, mode = 'eval'
  2824.  
  2825.     def check_ast(inp, run=True, mode='eval'):
  2826.         # expect a Python AST
  2827.         exp = ast.parse(inp, mode=mode)
  2828.         # observe something from xonsh
  2829. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2830. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2831.  
  2832. tests/test_parser.py:62: AttributeError
  2833. _______________________________________________________________ test_genexpr_if_genexpr_if[0] ________________________________________________________________
  2834.  
  2835. inp = '(x+y for x in "mom" if True for y in "dad" if y == "d")', run = True, mode = 'eval'
  2836.  
  2837.     def check_ast(inp, run=True, mode='eval'):
  2838.         # expect a Python AST
  2839.         exp = ast.parse(inp, mode=mode)
  2840.         # observe something from xonsh
  2841. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2842. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2843.  
  2844. tests/test_parser.py:62: AttributeError
  2845. ______________________________________________________________________ test_listcomp[0] ______________________________________________________________________
  2846.  
  2847. inp = '[x for x in "mom"]', run = True, mode = 'eval'
  2848.  
  2849.     def check_ast(inp, run=True, mode='eval'):
  2850.         # expect a Python AST
  2851.         exp = ast.parse(inp, mode=mode)
  2852.         # observe something from xonsh
  2853. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2854. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2855.  
  2856. tests/test_parser.py:62: AttributeError
  2857. ____________________________________________________________________ test_listcomp_if[0] _____________________________________________________________________
  2858.  
  2859. inp = '[x for x in "mom" if True]', run = True, mode = 'eval'
  2860.  
  2861.     def check_ast(inp, run=True, mode='eval'):
  2862.         # expect a Python AST
  2863.         exp = ast.parse(inp, mode=mode)
  2864.         # observe something from xonsh
  2865. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2866. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2867.  
  2868. tests/test_parser.py:62: AttributeError
  2869. __________________________________________________________________ test_listcomp_if_and[0] ___________________________________________________________________
  2870.  
  2871. inp = '[x for x in "mom" if True and x == "m"]', run = True, mode = 'eval'
  2872.  
  2873.     def check_ast(inp, run=True, mode='eval'):
  2874.         # expect a Python AST
  2875.         exp = ast.parse(inp, mode=mode)
  2876.         # observe something from xonsh
  2877. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2878. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2879.  
  2880. tests/test_parser.py:62: AttributeError
  2881. ____________________________________________________________________ test_dbl_listcomp[0] ____________________________________________________________________
  2882.  
  2883. inp = '[x+y for x in "mom" for y in "dad"]', run = True, mode = 'eval'
  2884.  
  2885.     def check_ast(inp, run=True, mode='eval'):
  2886.         # expect a Python AST
  2887.         exp = ast.parse(inp, mode=mode)
  2888.         # observe something from xonsh
  2889. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2890. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2891.  
  2892. tests/test_parser.py:62: AttributeError
  2893. ________________________________________________________________ test_listcomp_if_listcomp[0] ________________________________________________________________
  2894.  
  2895. inp = '[x+y for x in "mom" if True for y in "dad"]', run = True, mode = 'eval'
  2896.  
  2897.     def check_ast(inp, run=True, mode='eval'):
  2898.         # expect a Python AST
  2899.         exp = ast.parse(inp, mode=mode)
  2900.         # observe something from xonsh
  2901. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2902. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2903.  
  2904. tests/test_parser.py:62: AttributeError
  2905. ______________________________________________________________ test_listcomp_if_listcomp_if[0] _______________________________________________________________
  2906.  
  2907. inp = '[x+y for x in "mom" if True for y in "dad" if y == "d"]', run = True, mode = 'eval'
  2908.  
  2909.     def check_ast(inp, run=True, mode='eval'):
  2910.         # expect a Python AST
  2911.         exp = ast.parse(inp, mode=mode)
  2912.         # observe something from xonsh
  2913. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2914. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2915.  
  2916. tests/test_parser.py:62: AttributeError
  2917. ______________________________________________________________________ test_setcomp[0] _______________________________________________________________________
  2918.  
  2919. inp = '{x for x in "mom"}', run = True, mode = 'eval'
  2920.  
  2921.     def check_ast(inp, run=True, mode='eval'):
  2922.         # expect a Python AST
  2923.         exp = ast.parse(inp, mode=mode)
  2924.         # observe something from xonsh
  2925. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2926. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2927.  
  2928. tests/test_parser.py:62: AttributeError
  2929. _____________________________________________________________________ test_setcomp_if[0] _____________________________________________________________________
  2930.  
  2931. inp = '{x for x in "mom" if True}', run = True, mode = 'eval'
  2932.  
  2933.     def check_ast(inp, run=True, mode='eval'):
  2934.         # expect a Python AST
  2935.         exp = ast.parse(inp, mode=mode)
  2936.         # observe something from xonsh
  2937. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2938. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2939.  
  2940. tests/test_parser.py:62: AttributeError
  2941. ___________________________________________________________________ test_setcomp_if_and[0] ___________________________________________________________________
  2942.  
  2943. inp = '{x for x in "mom" if True and x == "m"}', run = True, mode = 'eval'
  2944.  
  2945.     def check_ast(inp, run=True, mode='eval'):
  2946.         # expect a Python AST
  2947.         exp = ast.parse(inp, mode=mode)
  2948.         # observe something from xonsh
  2949. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2950. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2951.  
  2952. tests/test_parser.py:62: AttributeError
  2953. ____________________________________________________________________ test_dbl_setcomp[0] _____________________________________________________________________
  2954.  
  2955. inp = '{x+y for x in "mom" for y in "dad"}', run = True, mode = 'eval'
  2956.  
  2957.     def check_ast(inp, run=True, mode='eval'):
  2958.         # expect a Python AST
  2959.         exp = ast.parse(inp, mode=mode)
  2960.         # observe something from xonsh
  2961. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2962. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2963.  
  2964. tests/test_parser.py:62: AttributeError
  2965. _________________________________________________________________ test_setcomp_if_setcomp[0] _________________________________________________________________
  2966.  
  2967. inp = '{x+y for x in "mom" if True for y in "dad"}', run = True, mode = 'eval'
  2968.  
  2969.     def check_ast(inp, run=True, mode='eval'):
  2970.         # expect a Python AST
  2971.         exp = ast.parse(inp, mode=mode)
  2972.         # observe something from xonsh
  2973. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2974. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2975.  
  2976. tests/test_parser.py:62: AttributeError
  2977. _______________________________________________________________ test_setcomp_if_setcomp_if[0] ________________________________________________________________
  2978.  
  2979. inp = '{x+y for x in "mom" if True for y in "dad" if y == "d"}', run = True, mode = 'eval'
  2980.  
  2981.     def check_ast(inp, run=True, mode='eval'):
  2982.         # expect a Python AST
  2983.         exp = ast.parse(inp, mode=mode)
  2984.         # observe something from xonsh
  2985. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2986. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2987.  
  2988. tests/test_parser.py:62: AttributeError
  2989. ______________________________________________________________________ test_dictcomp[0] ______________________________________________________________________
  2990.  
  2991. inp = '{x: x for x in "mom"}', run = True, mode = 'eval'
  2992.  
  2993.     def check_ast(inp, run=True, mode='eval'):
  2994.         # expect a Python AST
  2995.         exp = ast.parse(inp, mode=mode)
  2996.         # observe something from xonsh
  2997. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  2998. E       AttributeError: 'NoneType' object has no attribute 'parse'
  2999.  
  3000. tests/test_parser.py:62: AttributeError
  3001. _______________________________________________________________ test_dictcomp_unpack_parens[0] _______________________________________________________________
  3002.  
  3003. inp = '{k: v for (k, v) in {"x": 42}.items()}', run = True, mode = 'eval'
  3004.  
  3005.     def check_ast(inp, run=True, mode='eval'):
  3006.         # expect a Python AST
  3007.         exp = ast.parse(inp, mode=mode)
  3008.         # observe something from xonsh
  3009. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3010. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3011.  
  3012. tests/test_parser.py:62: AttributeError
  3013. _____________________________________________________________ test_dictcomp_unpack_no_parens[0] ______________________________________________________________
  3014.  
  3015. inp = '{k: v for k, v in {"x": 42}.items()}', run = True, mode = 'eval'
  3016.  
  3017.     def check_ast(inp, run=True, mode='eval'):
  3018.         # expect a Python AST
  3019.         exp = ast.parse(inp, mode=mode)
  3020.         # observe something from xonsh
  3021. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3022. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3023.  
  3024. tests/test_parser.py:62: AttributeError
  3025. ____________________________________________________________________ test_dictcomp_if[0] _____________________________________________________________________
  3026.  
  3027. inp = '{x: x for x in "mom" if True}', run = True, mode = 'eval'
  3028.  
  3029.     def check_ast(inp, run=True, mode='eval'):
  3030.         # expect a Python AST
  3031.         exp = ast.parse(inp, mode=mode)
  3032.         # observe something from xonsh
  3033. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3034. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3035.  
  3036. tests/test_parser.py:62: AttributeError
  3037. __________________________________________________________________ test_dictcomp_if_and[0] ___________________________________________________________________
  3038.  
  3039. inp = '{x: x for x in "mom" if True and x == "m"}', run = True, mode = 'eval'
  3040.  
  3041.     def check_ast(inp, run=True, mode='eval'):
  3042.         # expect a Python AST
  3043.         exp = ast.parse(inp, mode=mode)
  3044.         # observe something from xonsh
  3045. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3046. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3047.  
  3048. tests/test_parser.py:62: AttributeError
  3049. ____________________________________________________________________ test_dbl_dictcomp[0] ____________________________________________________________________
  3050.  
  3051. inp = '{x: y for x in "mom" for y in "dad"}', run = True, mode = 'eval'
  3052.  
  3053.     def check_ast(inp, run=True, mode='eval'):
  3054.         # expect a Python AST
  3055.         exp = ast.parse(inp, mode=mode)
  3056.         # observe something from xonsh
  3057. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3058. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3059.  
  3060. tests/test_parser.py:62: AttributeError
  3061. ________________________________________________________________ test_dictcomp_if_dictcomp[0] ________________________________________________________________
  3062.  
  3063. inp = '{x: y for x in "mom" if True for y in "dad"}', run = True, mode = 'eval'
  3064.  
  3065.     def check_ast(inp, run=True, mode='eval'):
  3066.         # expect a Python AST
  3067.         exp = ast.parse(inp, mode=mode)
  3068.         # observe something from xonsh
  3069. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3070. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3071.  
  3072. tests/test_parser.py:62: AttributeError
  3073. ______________________________________________________________ test_dictcomp_if_dictcomp_if[0] _______________________________________________________________
  3074.  
  3075. inp = '{x: y for x in "mom" if True for y in "dad" if y == "d"}', run = True, mode = 'eval'
  3076.  
  3077.     def check_ast(inp, run=True, mode='eval'):
  3078.         # expect a Python AST
  3079.         exp = ast.parse(inp, mode=mode)
  3080.         # observe something from xonsh
  3081. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3082. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3083.  
  3084. tests/test_parser.py:62: AttributeError
  3085. _______________________________________________________________________ test_lambda[0] _______________________________________________________________________
  3086.  
  3087. inp = 'lambda: 42', run = True, mode = 'eval'
  3088.  
  3089.     def check_ast(inp, run=True, mode='eval'):
  3090.         # expect a Python AST
  3091.         exp = ast.parse(inp, mode=mode)
  3092.         # observe something from xonsh
  3093. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3094. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3095.  
  3096. tests/test_parser.py:62: AttributeError
  3097. ______________________________________________________________________ test_lambda_x[0] ______________________________________________________________________
  3098.  
  3099. inp = 'lambda x: x', run = True, mode = 'eval'
  3100.  
  3101.     def check_ast(inp, run=True, mode='eval'):
  3102.         # expect a Python AST
  3103.         exp = ast.parse(inp, mode=mode)
  3104.         # observe something from xonsh
  3105. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3106. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3107.  
  3108. tests/test_parser.py:62: AttributeError
  3109. _____________________________________________________________________ test_lambda_kwx[0] _____________________________________________________________________
  3110.  
  3111. inp = 'lambda x=42: x', run = True, mode = 'eval'
  3112.  
  3113.     def check_ast(inp, run=True, mode='eval'):
  3114.         # expect a Python AST
  3115.         exp = ast.parse(inp, mode=mode)
  3116.         # observe something from xonsh
  3117. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3118. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3119.  
  3120. tests/test_parser.py:62: AttributeError
  3121. _____________________________________________________________________ test_lambda_x_y[0] _____________________________________________________________________
  3122.  
  3123. inp = 'lambda x, y: x', run = True, mode = 'eval'
  3124.  
  3125.     def check_ast(inp, run=True, mode='eval'):
  3126.         # expect a Python AST
  3127.         exp = ast.parse(inp, mode=mode)
  3128.         # observe something from xonsh
  3129. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3130. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3131.  
  3132. tests/test_parser.py:62: AttributeError
  3133. ____________________________________________________________________ test_lambda_x_y_z[0] ____________________________________________________________________
  3134.  
  3135. inp = 'lambda x, y, z: x', run = True, mode = 'eval'
  3136.  
  3137.     def check_ast(inp, run=True, mode='eval'):
  3138.         # expect a Python AST
  3139.         exp = ast.parse(inp, mode=mode)
  3140.         # observe something from xonsh
  3141. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3142. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3143.  
  3144. tests/test_parser.py:62: AttributeError
  3145. ____________________________________________________________________ test_lambda_x_kwy[0] ____________________________________________________________________
  3146.  
  3147. inp = 'lambda x, y=42: x', run = True, mode = 'eval'
  3148.  
  3149.     def check_ast(inp, run=True, mode='eval'):
  3150.         # expect a Python AST
  3151.         exp = ast.parse(inp, mode=mode)
  3152.         # observe something from xonsh
  3153. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3154. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3155.  
  3156. tests/test_parser.py:62: AttributeError
  3157. ___________________________________________________________________ test_lambda_kwx_kwy[0] ___________________________________________________________________
  3158.  
  3159. inp = 'lambda x=65, y=42: x', run = True, mode = 'eval'
  3160.  
  3161.     def check_ast(inp, run=True, mode='eval'):
  3162.         # expect a Python AST
  3163.         exp = ast.parse(inp, mode=mode)
  3164.         # observe something from xonsh
  3165. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3166. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3167.  
  3168. tests/test_parser.py:62: AttributeError
  3169. _________________________________________________________________ test_lambda_kwx_kwy_kwz[0] _________________________________________________________________
  3170.  
  3171. inp = 'lambda x=65, y=42, z=1: x', run = True, mode = 'eval'
  3172.  
  3173.     def check_ast(inp, run=True, mode='eval'):
  3174.         # expect a Python AST
  3175.         exp = ast.parse(inp, mode=mode)
  3176.         # observe something from xonsh
  3177. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3178. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3179.  
  3180. tests/test_parser.py:62: AttributeError
  3181. ___________________________________________________________________ test_lambda_x_comma[0] ___________________________________________________________________
  3182.  
  3183. inp = 'lambda x,: x', run = True, mode = 'eval'
  3184.  
  3185.     def check_ast(inp, run=True, mode='eval'):
  3186.         # expect a Python AST
  3187.         exp = ast.parse(inp, mode=mode)
  3188.         # observe something from xonsh
  3189. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3190. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3191.  
  3192. tests/test_parser.py:62: AttributeError
  3193. __________________________________________________________________ test_lambda_x_y_comma[0] __________________________________________________________________
  3194.  
  3195. inp = 'lambda x, y,: x', run = True, mode = 'eval'
  3196.  
  3197.     def check_ast(inp, run=True, mode='eval'):
  3198.         # expect a Python AST
  3199.         exp = ast.parse(inp, mode=mode)
  3200.         # observe something from xonsh
  3201. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3202. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3203.  
  3204. tests/test_parser.py:62: AttributeError
  3205. _________________________________________________________________ test_lambda_x_y_z_comma[0] _________________________________________________________________
  3206.  
  3207. inp = 'lambda x, y, z,: x', run = True, mode = 'eval'
  3208.  
  3209.     def check_ast(inp, run=True, mode='eval'):
  3210.         # expect a Python AST
  3211.         exp = ast.parse(inp, mode=mode)
  3212.         # observe something from xonsh
  3213. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3214. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3215.  
  3216. tests/test_parser.py:62: AttributeError
  3217. _________________________________________________________________ test_lambda_x_kwy_comma[0] _________________________________________________________________
  3218.  
  3219. inp = 'lambda x, y=42,: x', run = True, mode = 'eval'
  3220.  
  3221.     def check_ast(inp, run=True, mode='eval'):
  3222.         # expect a Python AST
  3223.         exp = ast.parse(inp, mode=mode)
  3224.         # observe something from xonsh
  3225. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3226. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3227.  
  3228. tests/test_parser.py:62: AttributeError
  3229. ________________________________________________________________ test_lambda_kwx_kwy_comma[0] ________________________________________________________________
  3230.  
  3231. inp = 'lambda x=65, y=42,: x', run = True, mode = 'eval'
  3232.  
  3233.     def check_ast(inp, run=True, mode='eval'):
  3234.         # expect a Python AST
  3235.         exp = ast.parse(inp, mode=mode)
  3236.         # observe something from xonsh
  3237. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3238. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3239.  
  3240. tests/test_parser.py:62: AttributeError
  3241. ______________________________________________________________ test_lambda_kwx_kwy_kwz_comma[0] ______________________________________________________________
  3242.  
  3243. inp = 'lambda x=65, y=42, z=1,: x', run = True, mode = 'eval'
  3244.  
  3245.     def check_ast(inp, run=True, mode='eval'):
  3246.         # expect a Python AST
  3247.         exp = ast.parse(inp, mode=mode)
  3248.         # observe something from xonsh
  3249. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3250. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3251.  
  3252. tests/test_parser.py:62: AttributeError
  3253. ____________________________________________________________________ test_lambda_args[0] _____________________________________________________________________
  3254.  
  3255. inp = 'lambda *args: 42', run = True, mode = 'eval'
  3256.  
  3257.     def check_ast(inp, run=True, mode='eval'):
  3258.         # expect a Python AST
  3259.         exp = ast.parse(inp, mode=mode)
  3260.         # observe something from xonsh
  3261. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3262. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3263.  
  3264. tests/test_parser.py:62: AttributeError
  3265. ___________________________________________________________________ test_lambda_args_x[0] ____________________________________________________________________
  3266.  
  3267. inp = 'lambda *args, x: 42', run = True, mode = 'eval'
  3268.  
  3269.     def check_ast(inp, run=True, mode='eval'):
  3270.         # expect a Python AST
  3271.         exp = ast.parse(inp, mode=mode)
  3272.         # observe something from xonsh
  3273. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3274. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3275.  
  3276. tests/test_parser.py:62: AttributeError
  3277. __________________________________________________________________ test_lambda_args_x_y[0] ___________________________________________________________________
  3278.  
  3279. inp = 'lambda *args, x, y: 42', run = True, mode = 'eval'
  3280.  
  3281.     def check_ast(inp, run=True, mode='eval'):
  3282.         # expect a Python AST
  3283.         exp = ast.parse(inp, mode=mode)
  3284.         # observe something from xonsh
  3285. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3286. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3287.  
  3288. tests/test_parser.py:62: AttributeError
  3289. _________________________________________________________________ test_lambda_args_x_kwy[0] __________________________________________________________________
  3290.  
  3291. inp = 'lambda *args, x, y=10: 42', run = True, mode = 'eval'
  3292.  
  3293.     def check_ast(inp, run=True, mode='eval'):
  3294.         # expect a Python AST
  3295.         exp = ast.parse(inp, mode=mode)
  3296.         # observe something from xonsh
  3297. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3298. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3299.  
  3300. tests/test_parser.py:62: AttributeError
  3301. _________________________________________________________________ test_lambda_args_kwx_y[0] __________________________________________________________________
  3302.  
  3303. inp = 'lambda *args, x=10, y: 42', run = True, mode = 'eval'
  3304.  
  3305.     def check_ast(inp, run=True, mode='eval'):
  3306.         # expect a Python AST
  3307.         exp = ast.parse(inp, mode=mode)
  3308.         # observe something from xonsh
  3309. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3310. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3311.  
  3312. tests/test_parser.py:62: AttributeError
  3313. ________________________________________________________________ test_lambda_args_kwx_kwy[0] _________________________________________________________________
  3314.  
  3315. inp = 'lambda *args, x=42, y=65: 42', run = True, mode = 'eval'
  3316.  
  3317.     def check_ast(inp, run=True, mode='eval'):
  3318.         # expect a Python AST
  3319.         exp = ast.parse(inp, mode=mode)
  3320.         # observe something from xonsh
  3321. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3322. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3323.  
  3324. tests/test_parser.py:62: AttributeError
  3325. ___________________________________________________________________ test_lambda_x_args[0] ____________________________________________________________________
  3326.  
  3327. inp = 'lambda x, *args: 42', run = True, mode = 'eval'
  3328.  
  3329.     def check_ast(inp, run=True, mode='eval'):
  3330.         # expect a Python AST
  3331.         exp = ast.parse(inp, mode=mode)
  3332.         # observe something from xonsh
  3333. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3334. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3335.  
  3336. tests/test_parser.py:62: AttributeError
  3337. __________________________________________________________________ test_lambda_x_args_y[0] ___________________________________________________________________
  3338.  
  3339. inp = 'lambda x, *args, y: 42', run = True, mode = 'eval'
  3340.  
  3341.     def check_ast(inp, run=True, mode='eval'):
  3342.         # expect a Python AST
  3343.         exp = ast.parse(inp, mode=mode)
  3344.         # observe something from xonsh
  3345. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3346. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3347.  
  3348. tests/test_parser.py:62: AttributeError
  3349. _________________________________________________________________ test_lambda_x_args_y_z[0] __________________________________________________________________
  3350.  
  3351. inp = 'lambda x, *args, y, z: 42', run = True, mode = 'eval'
  3352.  
  3353.     def check_ast(inp, run=True, mode='eval'):
  3354.         # expect a Python AST
  3355.         exp = ast.parse(inp, mode=mode)
  3356.         # observe something from xonsh
  3357. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3358. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3359.  
  3360. tests/test_parser.py:62: AttributeError
  3361. ___________________________________________________________________ test_lambda_kwargs[0] ____________________________________________________________________
  3362.  
  3363. inp = 'lambda **kwargs: 42', run = True, mode = 'eval'
  3364.  
  3365.     def check_ast(inp, run=True, mode='eval'):
  3366.         # expect a Python AST
  3367.         exp = ast.parse(inp, mode=mode)
  3368.         # observe something from xonsh
  3369. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3370. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3371.  
  3372. tests/test_parser.py:62: AttributeError
  3373. __________________________________________________________________ test_lambda_x_kwargs[0] ___________________________________________________________________
  3374.  
  3375. inp = 'lambda x, **kwargs: 42', run = True, mode = 'eval'
  3376.  
  3377.     def check_ast(inp, run=True, mode='eval'):
  3378.         # expect a Python AST
  3379.         exp = ast.parse(inp, mode=mode)
  3380.         # observe something from xonsh
  3381. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3382. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3383.  
  3384. tests/test_parser.py:62: AttributeError
  3385. _________________________________________________________________ test_lambda_x_y_kwargs[0] __________________________________________________________________
  3386.  
  3387. inp = 'lambda x, y, **kwargs: 42', run = True, mode = 'eval'
  3388.  
  3389.     def check_ast(inp, run=True, mode='eval'):
  3390.         # expect a Python AST
  3391.         exp = ast.parse(inp, mode=mode)
  3392.         # observe something from xonsh
  3393. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3394. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3395.  
  3396. tests/test_parser.py:62: AttributeError
  3397. ________________________________________________________________ test_lambda_x_kwy_kwargs[0] _________________________________________________________________
  3398.  
  3399. inp = 'lambda x, y=42, **kwargs: 42', run = True, mode = 'eval'
  3400.  
  3401.     def check_ast(inp, run=True, mode='eval'):
  3402.         # expect a Python AST
  3403.         exp = ast.parse(inp, mode=mode)
  3404.         # observe something from xonsh
  3405. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3406. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3407.  
  3408. tests/test_parser.py:62: AttributeError
  3409. _________________________________________________________________ test_lambda_args_kwargs[0] _________________________________________________________________
  3410.  
  3411. inp = 'lambda *args, **kwargs: 42', run = True, mode = 'eval'
  3412.  
  3413.     def check_ast(inp, run=True, mode='eval'):
  3414.         # expect a Python AST
  3415.         exp = ast.parse(inp, mode=mode)
  3416.         # observe something from xonsh
  3417. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3418. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3419.  
  3420. tests/test_parser.py:62: AttributeError
  3421. ________________________________________________________________ test_lambda_x_args_kwargs[0] ________________________________________________________________
  3422.  
  3423. inp = 'lambda x, *args, **kwargs: 42', run = True, mode = 'eval'
  3424.  
  3425.     def check_ast(inp, run=True, mode='eval'):
  3426.         # expect a Python AST
  3427.         exp = ast.parse(inp, mode=mode)
  3428.         # observe something from xonsh
  3429. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3430. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3431.  
  3432. tests/test_parser.py:62: AttributeError
  3433. _______________________________________________________________ test_lambda_x_y_args_kwargs[0] _______________________________________________________________
  3434.  
  3435. inp = 'lambda x, y, *args, **kwargs: 42', run = True, mode = 'eval'
  3436.  
  3437.     def check_ast(inp, run=True, mode='eval'):
  3438.         # expect a Python AST
  3439.         exp = ast.parse(inp, mode=mode)
  3440.         # observe something from xonsh
  3441. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3442. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3443.  
  3444. tests/test_parser.py:62: AttributeError
  3445. _______________________________________________________________ test_lambda_kwx_args_kwargs[0] _______________________________________________________________
  3446.  
  3447. inp = 'lambda x=10, *args, **kwargs: 42', run = True, mode = 'eval'
  3448.  
  3449.     def check_ast(inp, run=True, mode='eval'):
  3450.         # expect a Python AST
  3451.         exp = ast.parse(inp, mode=mode)
  3452.         # observe something from xonsh
  3453. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3454. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3455.  
  3456. tests/test_parser.py:62: AttributeError
  3457. ______________________________________________________________ test_lambda_x_kwy_args_kwargs[0] ______________________________________________________________
  3458.  
  3459. inp = 'lambda x, y=42, *args, **kwargs: 42', run = True, mode = 'eval'
  3460.  
  3461.     def check_ast(inp, run=True, mode='eval'):
  3462.         # expect a Python AST
  3463.         exp = ast.parse(inp, mode=mode)
  3464.         # observe something from xonsh
  3465. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3466. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3467.  
  3468. tests/test_parser.py:62: AttributeError
  3469. _______________________________________________________________ test_lambda_x_args_y_kwargs[0] _______________________________________________________________
  3470.  
  3471. inp = 'lambda x, *args, y, **kwargs: 42', run = True, mode = 'eval'
  3472.  
  3473.     def check_ast(inp, run=True, mode='eval'):
  3474.         # expect a Python AST
  3475.         exp = ast.parse(inp, mode=mode)
  3476.         # observe something from xonsh
  3477. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3478. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3479.  
  3480. tests/test_parser.py:62: AttributeError
  3481. ______________________________________________________________ test_lambda_x_args_kwy_kwargs[0] ______________________________________________________________
  3482.  
  3483. inp = 'lambda x, *args, y=42, **kwargs: 42', run = True, mode = 'eval'
  3484.  
  3485.     def check_ast(inp, run=True, mode='eval'):
  3486.         # expect a Python AST
  3487.         exp = ast.parse(inp, mode=mode)
  3488.         # observe something from xonsh
  3489. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3490. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3491.  
  3492. tests/test_parser.py:62: AttributeError
  3493. ________________________________________________________________ test_lambda_args_y_kwargs[0] ________________________________________________________________
  3494.  
  3495. inp = 'lambda *args, y, **kwargs: 42', run = True, mode = 'eval'
  3496.  
  3497.     def check_ast(inp, run=True, mode='eval'):
  3498.         # expect a Python AST
  3499.         exp = ast.parse(inp, mode=mode)
  3500.         # observe something from xonsh
  3501. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3502. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3503.  
  3504. tests/test_parser.py:62: AttributeError
  3505. ___________________________________________________________________ test_lambda_star_x[0] ____________________________________________________________________
  3506.  
  3507. inp = 'lambda *, x: 42', run = True, mode = 'eval'
  3508.  
  3509.     def check_ast(inp, run=True, mode='eval'):
  3510.         # expect a Python AST
  3511.         exp = ast.parse(inp, mode=mode)
  3512.         # observe something from xonsh
  3513. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3514. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3515.  
  3516. tests/test_parser.py:62: AttributeError
  3517. __________________________________________________________________ test_lambda_star_x_y[0] ___________________________________________________________________
  3518.  
  3519. inp = 'lambda *, x, y: 42', run = True, mode = 'eval'
  3520.  
  3521.     def check_ast(inp, run=True, mode='eval'):
  3522.         # expect a Python AST
  3523.         exp = ast.parse(inp, mode=mode)
  3524.         # observe something from xonsh
  3525. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3526. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3527.  
  3528. tests/test_parser.py:62: AttributeError
  3529. ________________________________________________________________ test_lambda_star_x_kwargs[0] ________________________________________________________________
  3530.  
  3531. inp = 'lambda *, x, **kwargs: 42', run = True, mode = 'eval'
  3532.  
  3533.     def check_ast(inp, run=True, mode='eval'):
  3534.         # expect a Python AST
  3535.         exp = ast.parse(inp, mode=mode)
  3536.         # observe something from xonsh
  3537. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3538. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3539.  
  3540. tests/test_parser.py:62: AttributeError
  3541. _______________________________________________________________ test_lambda_star_kwx_kwargs[0] _______________________________________________________________
  3542.  
  3543. inp = 'lambda *, x=42, **kwargs: 42', run = True, mode = 'eval'
  3544.  
  3545.     def check_ast(inp, run=True, mode='eval'):
  3546.         # expect a Python AST
  3547.         exp = ast.parse(inp, mode=mode)
  3548.         # observe something from xonsh
  3549. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3550. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3551.  
  3552. tests/test_parser.py:62: AttributeError
  3553. __________________________________________________________________ test_lambda_x_star_y[0] ___________________________________________________________________
  3554.  
  3555. inp = 'lambda x, *, y: 42', run = True, mode = 'eval'
  3556.  
  3557.     def check_ast(inp, run=True, mode='eval'):
  3558.         # expect a Python AST
  3559.         exp = ast.parse(inp, mode=mode)
  3560.         # observe something from xonsh
  3561. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3562. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3563.  
  3564. tests/test_parser.py:62: AttributeError
  3565. _________________________________________________________________ test_lambda_x_y_star_z[0] __________________________________________________________________
  3566.  
  3567. inp = 'lambda x, y, *, z: 42', run = True, mode = 'eval'
  3568.  
  3569.     def check_ast(inp, run=True, mode='eval'):
  3570.         # expect a Python AST
  3571.         exp = ast.parse(inp, mode=mode)
  3572.         # observe something from xonsh
  3573. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3574. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3575.  
  3576. tests/test_parser.py:62: AttributeError
  3577. ________________________________________________________________ test_lambda_x_kwy_star_y[0] _________________________________________________________________
  3578.  
  3579. inp = 'lambda x, y=42, *, z: 42', run = True, mode = 'eval'
  3580.  
  3581.     def check_ast(inp, run=True, mode='eval'):
  3582.         # expect a Python AST
  3583.         exp = ast.parse(inp, mode=mode)
  3584.         # observe something from xonsh
  3585. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3586. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3587.  
  3588. tests/test_parser.py:62: AttributeError
  3589. _______________________________________________________________ test_lambda_x_kwy_star_kwy[0] ________________________________________________________________
  3590.  
  3591. inp = 'lambda x, y=42, *, z=65: 42', run = True, mode = 'eval'
  3592.  
  3593.     def check_ast(inp, run=True, mode='eval'):
  3594.         # expect a Python AST
  3595.         exp = ast.parse(inp, mode=mode)
  3596.         # observe something from xonsh
  3597. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3598. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3599.  
  3600. tests/test_parser.py:62: AttributeError
  3601. _______________________________________________________________ test_lambda_x_star_y_kwargs[0] _______________________________________________________________
  3602.  
  3603. inp = 'lambda x, *, y, **kwargs: 42', run = True, mode = 'eval'
  3604.  
  3605.     def check_ast(inp, run=True, mode='eval'):
  3606.         # expect a Python AST
  3607.         exp = ast.parse(inp, mode=mode)
  3608.         # observe something from xonsh
  3609. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3610. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3611.  
  3612. tests/test_parser.py:62: AttributeError
  3613. _____________________________________________________________________ test_call_range[0] _____________________________________________________________________
  3614.  
  3615. inp = 'range(6)', run = True, mode = 'eval'
  3616.  
  3617.     def check_ast(inp, run=True, mode='eval'):
  3618.         # expect a Python AST
  3619.         exp = ast.parse(inp, mode=mode)
  3620.         # observe something from xonsh
  3621. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3622. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3623.  
  3624. tests/test_parser.py:62: AttributeError
  3625. __________________________________________________________________ test_call_range_comma[0] __________________________________________________________________
  3626.  
  3627. inp = 'range(6,)', run = True, mode = 'eval'
  3628.  
  3629.     def check_ast(inp, run=True, mode='eval'):
  3630.         # expect a Python AST
  3631.         exp = ast.parse(inp, mode=mode)
  3632.         # observe something from xonsh
  3633. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3634. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3635.  
  3636. tests/test_parser.py:62: AttributeError
  3637. ___________________________________________________________________ test_call_range_x_y[0] ___________________________________________________________________
  3638.  
  3639. inp = 'range(6, 10)', run = True, mode = 'eval'
  3640.  
  3641.     def check_ast(inp, run=True, mode='eval'):
  3642.         # expect a Python AST
  3643.         exp = ast.parse(inp, mode=mode)
  3644.         # observe something from xonsh
  3645. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3646. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3647.  
  3648. tests/test_parser.py:62: AttributeError
  3649. ________________________________________________________________ test_call_range_x_y_comma[0] ________________________________________________________________
  3650.  
  3651. inp = 'range(6, 10,)', run = True, mode = 'eval'
  3652.  
  3653.     def check_ast(inp, run=True, mode='eval'):
  3654.         # expect a Python AST
  3655.         exp = ast.parse(inp, mode=mode)
  3656.         # observe something from xonsh
  3657. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3658. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3659.  
  3660. tests/test_parser.py:62: AttributeError
  3661. __________________________________________________________________ test_call_range_x_y_z[0] __________________________________________________________________
  3662.  
  3663. inp = 'range(6, 10, 2)', run = True, mode = 'eval'
  3664.  
  3665.     def check_ast(inp, run=True, mode='eval'):
  3666.         # expect a Python AST
  3667.         exp = ast.parse(inp, mode=mode)
  3668.         # observe something from xonsh
  3669. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3670. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3671.  
  3672. tests/test_parser.py:62: AttributeError
  3673. ___________________________________________________________________ test_call_dict_kwx[0] ____________________________________________________________________
  3674.  
  3675. inp = 'dict(start=10)', run = True, mode = 'eval'
  3676.  
  3677.     def check_ast(inp, run=True, mode='eval'):
  3678.         # expect a Python AST
  3679.         exp = ast.parse(inp, mode=mode)
  3680.         # observe something from xonsh
  3681. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3682. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3683.  
  3684. tests/test_parser.py:62: AttributeError
  3685. ________________________________________________________________ test_call_dict_kwx_comma[0] _________________________________________________________________
  3686.  
  3687. inp = 'dict(start=10,)', run = True, mode = 'eval'
  3688.  
  3689.     def check_ast(inp, run=True, mode='eval'):
  3690.         # expect a Python AST
  3691.         exp = ast.parse(inp, mode=mode)
  3692.         # observe something from xonsh
  3693. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3694. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3695.  
  3696. tests/test_parser.py:62: AttributeError
  3697. _________________________________________________________________ test_call_dict_kwx_kwy[0] __________________________________________________________________
  3698.  
  3699. inp = 'dict(start=10, stop=42)', run = True, mode = 'eval'
  3700.  
  3701.     def check_ast(inp, run=True, mode='eval'):
  3702.         # expect a Python AST
  3703.         exp = ast.parse(inp, mode=mode)
  3704.         # observe something from xonsh
  3705. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3706. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3707.  
  3708. tests/test_parser.py:62: AttributeError
  3709. ___________________________________________________________________ test_call_tuple_gen[0] ___________________________________________________________________
  3710.  
  3711. inp = 'tuple(x for x in [1, 2, 3])', run = True, mode = 'eval'
  3712.  
  3713.     def check_ast(inp, run=True, mode='eval'):
  3714.         # expect a Python AST
  3715.         exp = ast.parse(inp, mode=mode)
  3716.         # observe something from xonsh
  3717. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3718. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3719.  
  3720. tests/test_parser.py:62: AttributeError
  3721. _________________________________________________________________ test_call_tuple_genifs[0] __________________________________________________________________
  3722.  
  3723. inp = 'tuple(x for x in [1, 2, 3] if x < 3)', run = True, mode = 'eval'
  3724.  
  3725.     def check_ast(inp, run=True, mode='eval'):
  3726.         # expect a Python AST
  3727.         exp = ast.parse(inp, mode=mode)
  3728.         # observe something from xonsh
  3729. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3730. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3731.  
  3732. tests/test_parser.py:62: AttributeError
  3733. __________________________________________________________________ test_call_range_star[0] ___________________________________________________________________
  3734.  
  3735. inp = 'range(*[1, 2, 3])', run = True, mode = 'eval'
  3736.  
  3737.     def check_ast(inp, run=True, mode='eval'):
  3738.         # expect a Python AST
  3739.         exp = ast.parse(inp, mode=mode)
  3740.         # observe something from xonsh
  3741. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3742. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3743.  
  3744. tests/test_parser.py:62: AttributeError
  3745. _________________________________________________________________ test_call_range_x_star[0] __________________________________________________________________
  3746.  
  3747. inp = 'range(1, *[2, 3])', run = True, mode = 'eval'
  3748.  
  3749.     def check_ast(inp, run=True, mode='eval'):
  3750.         # expect a Python AST
  3751.         exp = ast.parse(inp, mode=mode)
  3752.         # observe something from xonsh
  3753. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3754. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3755.  
  3756. tests/test_parser.py:62: AttributeError
  3757. ______________________________________________________________________ test_call_int[0] ______________________________________________________________________
  3758.  
  3759. inp = 'int(*["42"], base=8)', run = True, mode = 'eval'
  3760.  
  3761.     def check_ast(inp, run=True, mode='eval'):
  3762.         # expect a Python AST
  3763.         exp = ast.parse(inp, mode=mode)
  3764.         # observe something from xonsh
  3765. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3766. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3767.  
  3768. tests/test_parser.py:62: AttributeError
  3769. _________________________________________________________________ test_call_int_base_dict[0] _________________________________________________________________
  3770.  
  3771. inp = 'int(*["42"], **{"base": 8})', run = True, mode = 'eval'
  3772.  
  3773.     def check_ast(inp, run=True, mode='eval'):
  3774.         # expect a Python AST
  3775.         exp = ast.parse(inp, mode=mode)
  3776.         # observe something from xonsh
  3777. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3778. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3779.  
  3780. tests/test_parser.py:62: AttributeError
  3781. __________________________________________________________________ test_call_dict_kwargs[0] __________________________________________________________________
  3782.  
  3783. inp = 'dict(**{"base": 8})', run = True, mode = 'eval'
  3784.  
  3785.     def check_ast(inp, run=True, mode='eval'):
  3786.         # expect a Python AST
  3787.         exp = ast.parse(inp, mode=mode)
  3788.         # observe something from xonsh
  3789. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3790. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3791.  
  3792. tests/test_parser.py:62: AttributeError
  3793. ______________________________________________________________ test_call_list_many_star_args[0] ______________________________________________________________
  3794.  
  3795. inp = 'min(*[1, 2], 3, *[4, 5])', run = True, mode = 'eval'
  3796.  
  3797.     def check_ast(inp, run=True, mode='eval'):
  3798.         # expect a Python AST
  3799.         exp = ast.parse(inp, mode=mode)
  3800.         # observe something from xonsh
  3801. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3802. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3803.  
  3804. tests/test_parser.py:62: AttributeError
  3805. ____________________________________________________________ test_call_list_many_starstar_args[0] ____________________________________________________________
  3806.  
  3807. inp = 'dict(**{"a": 2}, v=3, **{"c": 5})', run = True, mode = 'eval'
  3808.  
  3809.     def check_ast(inp, run=True, mode='eval'):
  3810.         # expect a Python AST
  3811.         exp = ast.parse(inp, mode=mode)
  3812.         # observe something from xonsh
  3813. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3814. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3815.  
  3816. tests/test_parser.py:62: AttributeError
  3817. _______________________________________________________ test_call_list_many_star_and_starstar_args[0] ________________________________________________________
  3818.  
  3819. inp = 'x(*[("a", 2)], *[("v", 3)], **{"c": 5})', run = False, mode = 'eval'
  3820.  
  3821.     def check_ast(inp, run=True, mode='eval'):
  3822.         # expect a Python AST
  3823.         exp = ast.parse(inp, mode=mode)
  3824.         # observe something from xonsh
  3825. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3826. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3827.  
  3828. tests/test_parser.py:62: AttributeError
  3829. _____________________________________________________________________ test_call_alot[0] ______________________________________________________________________
  3830.  
  3831. inp = 'x(1, *args, **kwargs)', run = False, mode = 'eval'
  3832.  
  3833.     def check_ast(inp, run=True, mode='eval'):
  3834.         # expect a Python AST
  3835.         exp = ast.parse(inp, mode=mode)
  3836.         # observe something from xonsh
  3837. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3838. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3839.  
  3840. tests/test_parser.py:62: AttributeError
  3841. ___________________________________________________________________ test_call_alot_next[0] ___________________________________________________________________
  3842.  
  3843. inp = 'x(x=1, *args, **kwargs)', run = False, mode = 'eval'
  3844.  
  3845.     def check_ast(inp, run=True, mode='eval'):
  3846.         # expect a Python AST
  3847.         exp = ast.parse(inp, mode=mode)
  3848.         # observe something from xonsh
  3849. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3850. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3851.  
  3852. tests/test_parser.py:62: AttributeError
  3853. ________________________________________________________________ test_call_alot_next_next[0] _________________________________________________________________
  3854.  
  3855. inp = 'x(x=1, *args, y=42, **kwargs)', run = False, mode = 'eval'
  3856.  
  3857.     def check_ast(inp, run=True, mode='eval'):
  3858.         # expect a Python AST
  3859.         exp = ast.parse(inp, mode=mode)
  3860.         # observe something from xonsh
  3861. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3862. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3863.  
  3864. tests/test_parser.py:62: AttributeError
  3865. ______________________________________________________________________ test_getattr[0] _______________________________________________________________________
  3866.  
  3867. inp = 'list.append', run = True, mode = 'eval'
  3868.  
  3869.     def check_ast(inp, run=True, mode='eval'):
  3870.         # expect a Python AST
  3871.         exp = ast.parse(inp, mode=mode)
  3872.         # observe something from xonsh
  3873. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3874. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3875.  
  3876. tests/test_parser.py:62: AttributeError
  3877. __________________________________________________________________ test_getattr_getattr[0] ___________________________________________________________________
  3878.  
  3879. inp = 'list.append.__str__', run = True, mode = 'eval'
  3880.  
  3881.     def check_ast(inp, run=True, mode='eval'):
  3882.         # expect a Python AST
  3883.         exp = ast.parse(inp, mode=mode)
  3884.         # observe something from xonsh
  3885. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3886. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3887.  
  3888. tests/test_parser.py:62: AttributeError
  3889. ___________________________________________________________________ test_dict_tuple_key[0] ___________________________________________________________________
  3890.  
  3891. inp = '{(42, 1): 65}', run = True, mode = 'eval'
  3892.  
  3893.     def check_ast(inp, run=True, mode='eval'):
  3894.         # expect a Python AST
  3895.         exp = ast.parse(inp, mode=mode)
  3896.         # observe something from xonsh
  3897. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3898. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3899.  
  3900. tests/test_parser.py:62: AttributeError
  3901. _________________________________________________________________ test_dict_tuple_key_get[0] _________________________________________________________________
  3902.  
  3903. inp = '{(42, 1): 65}[42, 1]', run = True, mode = 'eval'
  3904.  
  3905.     def check_ast(inp, run=True, mode='eval'):
  3906.         # expect a Python AST
  3907.         exp = ast.parse(inp, mode=mode)
  3908.         # observe something from xonsh
  3909. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3910. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3911.  
  3912. tests/test_parser.py:62: AttributeError
  3913. ________________________________________________________________ test_dict_tuple_key_get_3[0] ________________________________________________________________
  3914.  
  3915. inp = '{(42, 1, 3): 65}[42, 1, 3]', run = True, mode = 'eval'
  3916.  
  3917.     def check_ast(inp, run=True, mode='eval'):
  3918.         # expect a Python AST
  3919.         exp = ast.parse(inp, mode=mode)
  3920.         # observe something from xonsh
  3921. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3922. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3923.  
  3924. tests/test_parser.py:62: AttributeError
  3925. ______________________________________________________________________ test_pipe_op[0] _______________________________________________________________________
  3926.  
  3927. inp = '{42} | {65}', run = True, mode = 'eval'
  3928.  
  3929.     def check_ast(inp, run=True, mode='eval'):
  3930.         # expect a Python AST
  3931.         exp = ast.parse(inp, mode=mode)
  3932.         # observe something from xonsh
  3933. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3934. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3935.  
  3936. tests/test_parser.py:62: AttributeError
  3937. ____________________________________________________________________ test_pipe_op_two[0] _____________________________________________________________________
  3938.  
  3939. inp = '{42} | {65} | {1}', run = True, mode = 'eval'
  3940.  
  3941.     def check_ast(inp, run=True, mode='eval'):
  3942.         # expect a Python AST
  3943.         exp = ast.parse(inp, mode=mode)
  3944.         # observe something from xonsh
  3945. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3946. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3947.  
  3948. tests/test_parser.py:62: AttributeError
  3949. ___________________________________________________________________ test_pipe_op_three[0] ____________________________________________________________________
  3950.  
  3951. inp = '{42} | {65} | {1} | {7}', run = True, mode = 'eval'
  3952.  
  3953.     def check_ast(inp, run=True, mode='eval'):
  3954.         # expect a Python AST
  3955.         exp = ast.parse(inp, mode=mode)
  3956.         # observe something from xonsh
  3957. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3958. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3959.  
  3960. tests/test_parser.py:62: AttributeError
  3961. _______________________________________________________________________ test_xor_op[0] _______________________________________________________________________
  3962.  
  3963. inp = '{42} ^ {65}', run = True, mode = 'eval'
  3964.  
  3965.     def check_ast(inp, run=True, mode='eval'):
  3966.         # expect a Python AST
  3967.         exp = ast.parse(inp, mode=mode)
  3968.         # observe something from xonsh
  3969. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3970. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3971.  
  3972. tests/test_parser.py:62: AttributeError
  3973. _____________________________________________________________________ test_xor_op_two[0] _____________________________________________________________________
  3974.  
  3975. inp = '{42} ^ {65} ^ {1}', run = True, mode = 'eval'
  3976.  
  3977.     def check_ast(inp, run=True, mode='eval'):
  3978.         # expect a Python AST
  3979.         exp = ast.parse(inp, mode=mode)
  3980.         # observe something from xonsh
  3981. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3982. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3983.  
  3984. tests/test_parser.py:62: AttributeError
  3985. ____________________________________________________________________ test_xor_op_three[0] ____________________________________________________________________
  3986.  
  3987. inp = '{42} ^ {65} ^ {1} ^ {7}', run = True, mode = 'eval'
  3988.  
  3989.     def check_ast(inp, run=True, mode='eval'):
  3990.         # expect a Python AST
  3991.         exp = ast.parse(inp, mode=mode)
  3992.         # observe something from xonsh
  3993. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  3994. E       AttributeError: 'NoneType' object has no attribute 'parse'
  3995.  
  3996. tests/test_parser.py:62: AttributeError
  3997. ______________________________________________________________________ test_xor_pipe[0] ______________________________________________________________________
  3998.  
  3999. inp = '{42} ^ {65} | {1}', run = True, mode = 'eval'
  4000.  
  4001.     def check_ast(inp, run=True, mode='eval'):
  4002.         # expect a Python AST
  4003.         exp = ast.parse(inp, mode=mode)
  4004.         # observe something from xonsh
  4005. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4006. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4007.  
  4008. tests/test_parser.py:62: AttributeError
  4009. _______________________________________________________________________ test_amp_op[0] _______________________________________________________________________
  4010.  
  4011. inp = '{42} & {65}', run = True, mode = 'eval'
  4012.  
  4013.     def check_ast(inp, run=True, mode='eval'):
  4014.         # expect a Python AST
  4015.         exp = ast.parse(inp, mode=mode)
  4016.         # observe something from xonsh
  4017. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4018. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4019.  
  4020. tests/test_parser.py:62: AttributeError
  4021. _____________________________________________________________________ test_amp_op_two[0] _____________________________________________________________________
  4022.  
  4023. inp = '{42} & {65} & {1}', run = True, mode = 'eval'
  4024.  
  4025.     def check_ast(inp, run=True, mode='eval'):
  4026.         # expect a Python AST
  4027.         exp = ast.parse(inp, mode=mode)
  4028.         # observe something from xonsh
  4029. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4030. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4031.  
  4032. tests/test_parser.py:62: AttributeError
  4033. ____________________________________________________________________ test_amp_op_three[0] ____________________________________________________________________
  4034.  
  4035. inp = '{42} & {65} & {1} & {7}', run = True, mode = 'eval'
  4036.  
  4037.     def check_ast(inp, run=True, mode='eval'):
  4038.         # expect a Python AST
  4039.         exp = ast.parse(inp, mode=mode)
  4040.         # observe something from xonsh
  4041. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4042. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4043.  
  4044. tests/test_parser.py:62: AttributeError
  4045. _____________________________________________________________________ test_lshift_op[0] ______________________________________________________________________
  4046.  
  4047. inp = '42 << 65', run = True, mode = 'eval'
  4048.  
  4049.     def check_ast(inp, run=True, mode='eval'):
  4050.         # expect a Python AST
  4051.         exp = ast.parse(inp, mode=mode)
  4052.         # observe something from xonsh
  4053. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4054. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4055.  
  4056. tests/test_parser.py:62: AttributeError
  4057. ___________________________________________________________________ test_lshift_op_two[0] ____________________________________________________________________
  4058.  
  4059. inp = '42 << 65 << 1', run = True, mode = 'eval'
  4060.  
  4061.     def check_ast(inp, run=True, mode='eval'):
  4062.         # expect a Python AST
  4063.         exp = ast.parse(inp, mode=mode)
  4064.         # observe something from xonsh
  4065. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4066. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4067.  
  4068. tests/test_parser.py:62: AttributeError
  4069. __________________________________________________________________ test_lshift_op_three[0] ___________________________________________________________________
  4070.  
  4071. inp = '42 << 65 << 1 << 7', run = True, mode = 'eval'
  4072.  
  4073.     def check_ast(inp, run=True, mode='eval'):
  4074.         # expect a Python AST
  4075.         exp = ast.parse(inp, mode=mode)
  4076.         # observe something from xonsh
  4077. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4078. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4079.  
  4080. tests/test_parser.py:62: AttributeError
  4081. _____________________________________________________________________ test_rshift_op[0] ______________________________________________________________________
  4082.  
  4083. inp = '42 >> 65', run = True, mode = 'eval'
  4084.  
  4085.     def check_ast(inp, run=True, mode='eval'):
  4086.         # expect a Python AST
  4087.         exp = ast.parse(inp, mode=mode)
  4088.         # observe something from xonsh
  4089. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4090. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4091.  
  4092. tests/test_parser.py:62: AttributeError
  4093. ___________________________________________________________________ test_rshift_op_two[0] ____________________________________________________________________
  4094.  
  4095. inp = '42 >> 65 >> 1', run = True, mode = 'eval'
  4096.  
  4097.     def check_ast(inp, run=True, mode='eval'):
  4098.         # expect a Python AST
  4099.         exp = ast.parse(inp, mode=mode)
  4100.         # observe something from xonsh
  4101. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4102. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4103.  
  4104. tests/test_parser.py:62: AttributeError
  4105. __________________________________________________________________ test_rshift_op_three[0] ___________________________________________________________________
  4106.  
  4107. inp = '42 >> 65 >> 1 >> 7', run = True, mode = 'eval'
  4108.  
  4109.     def check_ast(inp, run=True, mode='eval'):
  4110.         # expect a Python AST
  4111.         exp = ast.parse(inp, mode=mode)
  4112.         # observe something from xonsh
  4113. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4114. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4115.  
  4116. tests/test_parser.py:62: AttributeError
  4117. _______________________________________________________________________ test_equals[0] _______________________________________________________________________
  4118.  
  4119. inp = 'x = 42\n', run = True, mode = 'exec'
  4120.  
  4121.     def check_stmts(inp, run=True, mode='exec'):
  4122.         if not inp.endswith('\n'):
  4123.             inp += '\n'
  4124. >       check_ast(inp, run=run, mode=mode)
  4125.  
  4126. tests/test_parser.py:72:
  4127. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4128.  
  4129. inp = 'x = 42\n', run = True, mode = 'exec'
  4130.  
  4131.     def check_ast(inp, run=True, mode='eval'):
  4132.         # expect a Python AST
  4133.         exp = ast.parse(inp, mode=mode)
  4134.         # observe something from xonsh
  4135. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4136. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4137.  
  4138. tests/test_parser.py:62: AttributeError
  4139. ____________________________________________________________________ test_equals_semi[0] _____________________________________________________________________
  4140.  
  4141. inp = 'x = 42;\n', run = True, mode = 'exec'
  4142.  
  4143.     def check_stmts(inp, run=True, mode='exec'):
  4144.         if not inp.endswith('\n'):
  4145.             inp += '\n'
  4146. >       check_ast(inp, run=run, mode=mode)
  4147.  
  4148. tests/test_parser.py:72:
  4149. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4150.  
  4151. inp = 'x = 42;\n', run = True, mode = 'exec'
  4152.  
  4153.     def check_ast(inp, run=True, mode='eval'):
  4154.         # expect a Python AST
  4155.         exp = ast.parse(inp, mode=mode)
  4156.         # observe something from xonsh
  4157. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4158. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4159.  
  4160. tests/test_parser.py:62: AttributeError
  4161. __________________________________________________________________ test_x_y_equals_semi[0] ___________________________________________________________________
  4162.  
  4163. inp = 'x = y = 42\n', run = True, mode = 'exec'
  4164.  
  4165.     def check_stmts(inp, run=True, mode='exec'):
  4166.         if not inp.endswith('\n'):
  4167.             inp += '\n'
  4168. >       check_ast(inp, run=run, mode=mode)
  4169.  
  4170. tests/test_parser.py:72:
  4171. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4172.  
  4173. inp = 'x = y = 42\n', run = True, mode = 'exec'
  4174.  
  4175.     def check_ast(inp, run=True, mode='eval'):
  4176.         # expect a Python AST
  4177.         exp = ast.parse(inp, mode=mode)
  4178.         # observe something from xonsh
  4179. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4180. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4181.  
  4182. tests/test_parser.py:62: AttributeError
  4183. _____________________________________________________________________ test_equals_two[0] _____________________________________________________________________
  4184.  
  4185. inp = 'x = 42; y = 65\n', run = True, mode = 'exec'
  4186.  
  4187.     def check_stmts(inp, run=True, mode='exec'):
  4188.         if not inp.endswith('\n'):
  4189.             inp += '\n'
  4190. >       check_ast(inp, run=run, mode=mode)
  4191.  
  4192. tests/test_parser.py:72:
  4193. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4194.  
  4195. inp = 'x = 42; y = 65\n', run = True, mode = 'exec'
  4196.  
  4197.     def check_ast(inp, run=True, mode='eval'):
  4198.         # expect a Python AST
  4199.         exp = ast.parse(inp, mode=mode)
  4200.         # observe something from xonsh
  4201. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4202. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4203.  
  4204. tests/test_parser.py:62: AttributeError
  4205. __________________________________________________________________ test_equals_two_semi[0] ___________________________________________________________________
  4206.  
  4207. inp = 'x = 42; y = 65;\n', run = True, mode = 'exec'
  4208.  
  4209.     def check_stmts(inp, run=True, mode='exec'):
  4210.         if not inp.endswith('\n'):
  4211.             inp += '\n'
  4212. >       check_ast(inp, run=run, mode=mode)
  4213.  
  4214. tests/test_parser.py:72:
  4215. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4216.  
  4217. inp = 'x = 42; y = 65;\n', run = True, mode = 'exec'
  4218.  
  4219.     def check_ast(inp, run=True, mode='eval'):
  4220.         # expect a Python AST
  4221.         exp = ast.parse(inp, mode=mode)
  4222.         # observe something from xonsh
  4223. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4224. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4225.  
  4226. tests/test_parser.py:62: AttributeError
  4227. ____________________________________________________________________ test_equals_three[0] ____________________________________________________________________
  4228.  
  4229. inp = 'x = 42; y = 65; z = 6\n', run = True, mode = 'exec'
  4230.  
  4231.     def check_stmts(inp, run=True, mode='exec'):
  4232.         if not inp.endswith('\n'):
  4233.             inp += '\n'
  4234. >       check_ast(inp, run=run, mode=mode)
  4235.  
  4236. tests/test_parser.py:72:
  4237. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4238.  
  4239. inp = 'x = 42; y = 65; z = 6\n', run = True, mode = 'exec'
  4240.  
  4241.     def check_ast(inp, run=True, mode='eval'):
  4242.         # expect a Python AST
  4243.         exp = ast.parse(inp, mode=mode)
  4244.         # observe something from xonsh
  4245. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4246. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4247.  
  4248. tests/test_parser.py:62: AttributeError
  4249. _________________________________________________________________ test_equals_three_semi[0] __________________________________________________________________
  4250.  
  4251. inp = 'x = 42; y = 65; z = 6;\n', run = True, mode = 'exec'
  4252.  
  4253.     def check_stmts(inp, run=True, mode='exec'):
  4254.         if not inp.endswith('\n'):
  4255.             inp += '\n'
  4256. >       check_ast(inp, run=run, mode=mode)
  4257.  
  4258. tests/test_parser.py:72:
  4259. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4260.  
  4261. inp = 'x = 42; y = 65; z = 6;\n', run = True, mode = 'exec'
  4262.  
  4263.     def check_ast(inp, run=True, mode='eval'):
  4264.         # expect a Python AST
  4265.         exp = ast.parse(inp, mode=mode)
  4266.         # observe something from xonsh
  4267. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4268. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4269.  
  4270. tests/test_parser.py:62: AttributeError
  4271. ______________________________________________________________________ test_plus_eq[0] _______________________________________________________________________
  4272.  
  4273. inp = 'x = 42; x += 65\n', run = True, mode = 'exec'
  4274.  
  4275.     def check_stmts(inp, run=True, mode='exec'):
  4276.         if not inp.endswith('\n'):
  4277.             inp += '\n'
  4278. >       check_ast(inp, run=run, mode=mode)
  4279.  
  4280. tests/test_parser.py:72:
  4281. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4282.  
  4283. inp = 'x = 42; x += 65\n', run = True, mode = 'exec'
  4284.  
  4285.     def check_ast(inp, run=True, mode='eval'):
  4286.         # expect a Python AST
  4287.         exp = ast.parse(inp, mode=mode)
  4288.         # observe something from xonsh
  4289. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4290. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4291.  
  4292. tests/test_parser.py:62: AttributeError
  4293. _______________________________________________________________________ test_sub_eq[0] _______________________________________________________________________
  4294.  
  4295. inp = 'x = 42; x -= 2\n', run = True, mode = 'exec'
  4296.  
  4297.     def check_stmts(inp, run=True, mode='exec'):
  4298.         if not inp.endswith('\n'):
  4299.             inp += '\n'
  4300. >       check_ast(inp, run=run, mode=mode)
  4301.  
  4302. tests/test_parser.py:72:
  4303. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4304.  
  4305. inp = 'x = 42; x -= 2\n', run = True, mode = 'exec'
  4306.  
  4307.     def check_ast(inp, run=True, mode='eval'):
  4308.         # expect a Python AST
  4309.         exp = ast.parse(inp, mode=mode)
  4310.         # observe something from xonsh
  4311. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4312. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4313.  
  4314. tests/test_parser.py:62: AttributeError
  4315. ______________________________________________________________________ test_times_eq[0] ______________________________________________________________________
  4316.  
  4317. inp = 'x = 42; x *= 2\n', run = True, mode = 'exec'
  4318.  
  4319.     def check_stmts(inp, run=True, mode='exec'):
  4320.         if not inp.endswith('\n'):
  4321.             inp += '\n'
  4322. >       check_ast(inp, run=run, mode=mode)
  4323.  
  4324. tests/test_parser.py:72:
  4325. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4326.  
  4327. inp = 'x = 42; x *= 2\n', run = True, mode = 'exec'
  4328.  
  4329.     def check_ast(inp, run=True, mode='eval'):
  4330.         # expect a Python AST
  4331.         exp = ast.parse(inp, mode=mode)
  4332.         # observe something from xonsh
  4333. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4334. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4335.  
  4336. tests/test_parser.py:62: AttributeError
  4337. _____________________________________________________________________ test_matmult_eq[0] _____________________________________________________________________
  4338.  
  4339. inp = 'x @= y\n', run = False, mode = 'exec'
  4340.  
  4341.     def check_stmts(inp, run=True, mode='exec'):
  4342.         if not inp.endswith('\n'):
  4343.             inp += '\n'
  4344. >       check_ast(inp, run=run, mode=mode)
  4345.  
  4346. tests/test_parser.py:72:
  4347. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4348.  
  4349. inp = 'x @= y\n', run = False, mode = 'exec'
  4350.  
  4351.     def check_ast(inp, run=True, mode='eval'):
  4352.         # expect a Python AST
  4353.         exp = ast.parse(inp, mode=mode)
  4354.         # observe something from xonsh
  4355. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4356. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4357.  
  4358. tests/test_parser.py:62: AttributeError
  4359. _______________________________________________________________________ test_div_eq[0] _______________________________________________________________________
  4360.  
  4361. inp = 'x = 42; x /= 2\n', run = True, mode = 'exec'
  4362.  
  4363.     def check_stmts(inp, run=True, mode='exec'):
  4364.         if not inp.endswith('\n'):
  4365.             inp += '\n'
  4366. >       check_ast(inp, run=run, mode=mode)
  4367.  
  4368. tests/test_parser.py:72:
  4369. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4370.  
  4371. inp = 'x = 42; x /= 2\n', run = True, mode = 'exec'
  4372.  
  4373.     def check_ast(inp, run=True, mode='eval'):
  4374.         # expect a Python AST
  4375.         exp = ast.parse(inp, mode=mode)
  4376.         # observe something from xonsh
  4377. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4378. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4379.  
  4380. tests/test_parser.py:62: AttributeError
  4381. ____________________________________________________________________ test_floordiv_eq[0] _____________________________________________________________________
  4382.  
  4383. inp = 'x = 42; x //= 2\n', run = True, mode = 'exec'
  4384.  
  4385.     def check_stmts(inp, run=True, mode='exec'):
  4386.         if not inp.endswith('\n'):
  4387.             inp += '\n'
  4388. >       check_ast(inp, run=run, mode=mode)
  4389.  
  4390. tests/test_parser.py:72:
  4391. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4392.  
  4393. inp = 'x = 42; x //= 2\n', run = True, mode = 'exec'
  4394.  
  4395.     def check_ast(inp, run=True, mode='eval'):
  4396.         # expect a Python AST
  4397.         exp = ast.parse(inp, mode=mode)
  4398.         # observe something from xonsh
  4399. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4400. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4401.  
  4402. tests/test_parser.py:62: AttributeError
  4403. _______________________________________________________________________ test_pow_eq[0] _______________________________________________________________________
  4404.  
  4405. inp = 'x = 42; x **= 2\n', run = True, mode = 'exec'
  4406.  
  4407.     def check_stmts(inp, run=True, mode='exec'):
  4408.         if not inp.endswith('\n'):
  4409.             inp += '\n'
  4410. >       check_ast(inp, run=run, mode=mode)
  4411.  
  4412. tests/test_parser.py:72:
  4413. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4414.  
  4415. inp = 'x = 42; x **= 2\n', run = True, mode = 'exec'
  4416.  
  4417.     def check_ast(inp, run=True, mode='eval'):
  4418.         # expect a Python AST
  4419.         exp = ast.parse(inp, mode=mode)
  4420.         # observe something from xonsh
  4421. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4422. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4423.  
  4424. tests/test_parser.py:62: AttributeError
  4425. _______________________________________________________________________ test_mod_eq[0] _______________________________________________________________________
  4426.  
  4427. inp = 'x = 42; x %= 2\n', run = True, mode = 'exec'
  4428.  
  4429.     def check_stmts(inp, run=True, mode='exec'):
  4430.         if not inp.endswith('\n'):
  4431.             inp += '\n'
  4432. >       check_ast(inp, run=run, mode=mode)
  4433.  
  4434. tests/test_parser.py:72:
  4435. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4436.  
  4437. inp = 'x = 42; x %= 2\n', run = True, mode = 'exec'
  4438.  
  4439.     def check_ast(inp, run=True, mode='eval'):
  4440.         # expect a Python AST
  4441.         exp = ast.parse(inp, mode=mode)
  4442.         # observe something from xonsh
  4443. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4444. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4445.  
  4446. tests/test_parser.py:62: AttributeError
  4447. _______________________________________________________________________ test_xor_eq[0] _______________________________________________________________________
  4448.  
  4449. inp = 'x = 42; x ^= 2\n', run = True, mode = 'exec'
  4450.  
  4451.     def check_stmts(inp, run=True, mode='exec'):
  4452.         if not inp.endswith('\n'):
  4453.             inp += '\n'
  4454. >       check_ast(inp, run=run, mode=mode)
  4455.  
  4456. tests/test_parser.py:72:
  4457. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4458.  
  4459. inp = 'x = 42; x ^= 2\n', run = True, mode = 'exec'
  4460.  
  4461.     def check_ast(inp, run=True, mode='eval'):
  4462.         # expect a Python AST
  4463.         exp = ast.parse(inp, mode=mode)
  4464.         # observe something from xonsh
  4465. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4466. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4467.  
  4468. tests/test_parser.py:62: AttributeError
  4469. ____________________________________________________________________ test_ampersand_eq[0] ____________________________________________________________________
  4470.  
  4471. inp = 'x = 42; x &= 2\n', run = True, mode = 'exec'
  4472.  
  4473.     def check_stmts(inp, run=True, mode='exec'):
  4474.         if not inp.endswith('\n'):
  4475.             inp += '\n'
  4476. >       check_ast(inp, run=run, mode=mode)
  4477.  
  4478. tests/test_parser.py:72:
  4479. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4480.  
  4481. inp = 'x = 42; x &= 2\n', run = True, mode = 'exec'
  4482.  
  4483.     def check_ast(inp, run=True, mode='eval'):
  4484.         # expect a Python AST
  4485.         exp = ast.parse(inp, mode=mode)
  4486.         # observe something from xonsh
  4487. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4488. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4489.  
  4490. tests/test_parser.py:62: AttributeError
  4491. ______________________________________________________________________ test_bitor_eq[0] ______________________________________________________________________
  4492.  
  4493. inp = 'x = 42; x |= 2\n', run = True, mode = 'exec'
  4494.  
  4495.     def check_stmts(inp, run=True, mode='exec'):
  4496.         if not inp.endswith('\n'):
  4497.             inp += '\n'
  4498. >       check_ast(inp, run=run, mode=mode)
  4499.  
  4500. tests/test_parser.py:72:
  4501. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4502.  
  4503. inp = 'x = 42; x |= 2\n', run = True, mode = 'exec'
  4504.  
  4505.     def check_ast(inp, run=True, mode='eval'):
  4506.         # expect a Python AST
  4507.         exp = ast.parse(inp, mode=mode)
  4508.         # observe something from xonsh
  4509. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4510. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4511.  
  4512. tests/test_parser.py:62: AttributeError
  4513. _____________________________________________________________________ test_lshift_eq[0] ______________________________________________________________________
  4514.  
  4515. inp = 'x = 42; x <<= 2\n', run = True, mode = 'exec'
  4516.  
  4517.     def check_stmts(inp, run=True, mode='exec'):
  4518.         if not inp.endswith('\n'):
  4519.             inp += '\n'
  4520. >       check_ast(inp, run=run, mode=mode)
  4521.  
  4522. tests/test_parser.py:72:
  4523. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4524.  
  4525. inp = 'x = 42; x <<= 2\n', run = True, mode = 'exec'
  4526.  
  4527.     def check_ast(inp, run=True, mode='eval'):
  4528.         # expect a Python AST
  4529.         exp = ast.parse(inp, mode=mode)
  4530.         # observe something from xonsh
  4531. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4532. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4533.  
  4534. tests/test_parser.py:62: AttributeError
  4535. _____________________________________________________________________ test_rshift_eq[0] ______________________________________________________________________
  4536.  
  4537. inp = 'x = 42; x >>= 2\n', run = True, mode = 'exec'
  4538.  
  4539.     def check_stmts(inp, run=True, mode='exec'):
  4540.         if not inp.endswith('\n'):
  4541.             inp += '\n'
  4542. >       check_ast(inp, run=run, mode=mode)
  4543.  
  4544. tests/test_parser.py:72:
  4545. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4546.  
  4547. inp = 'x = 42; x >>= 2\n', run = True, mode = 'exec'
  4548.  
  4549.     def check_ast(inp, run=True, mode='eval'):
  4550.         # expect a Python AST
  4551.         exp = ast.parse(inp, mode=mode)
  4552.         # observe something from xonsh
  4553. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4554. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4555.  
  4556. tests/test_parser.py:62: AttributeError
  4557. ____________________________________________________________________ test_bare_unpack[0] _____________________________________________________________________
  4558.  
  4559. inp = 'x, y = 42, 65\n', run = True, mode = 'exec'
  4560.  
  4561.     def check_stmts(inp, run=True, mode='exec'):
  4562.         if not inp.endswith('\n'):
  4563.             inp += '\n'
  4564. >       check_ast(inp, run=run, mode=mode)
  4565.  
  4566. tests/test_parser.py:72:
  4567. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4568.  
  4569. inp = 'x, y = 42, 65\n', run = True, mode = 'exec'
  4570.  
  4571.     def check_ast(inp, run=True, mode='eval'):
  4572.         # expect a Python AST
  4573.         exp = ast.parse(inp, mode=mode)
  4574.         # observe something from xonsh
  4575. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4576. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4577.  
  4578. tests/test_parser.py:62: AttributeError
  4579. _________________________________________________________________ test_lhand_group_unpack[0] _________________________________________________________________
  4580.  
  4581. inp = '(x, y) = 42, 65\n', run = True, mode = 'exec'
  4582.  
  4583.     def check_stmts(inp, run=True, mode='exec'):
  4584.         if not inp.endswith('\n'):
  4585.             inp += '\n'
  4586. >       check_ast(inp, run=run, mode=mode)
  4587.  
  4588. tests/test_parser.py:72:
  4589. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4590.  
  4591. inp = '(x, y) = 42, 65\n', run = True, mode = 'exec'
  4592.  
  4593.     def check_ast(inp, run=True, mode='eval'):
  4594.         # expect a Python AST
  4595.         exp = ast.parse(inp, mode=mode)
  4596.         # observe something from xonsh
  4597. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4598. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4599.  
  4600. tests/test_parser.py:62: AttributeError
  4601. _________________________________________________________________ test_rhand_group_unpack[0] _________________________________________________________________
  4602.  
  4603. inp = 'x, y = (42, 65)\n', run = True, mode = 'exec'
  4604.  
  4605.     def check_stmts(inp, run=True, mode='exec'):
  4606.         if not inp.endswith('\n'):
  4607.             inp += '\n'
  4608. >       check_ast(inp, run=run, mode=mode)
  4609.  
  4610. tests/test_parser.py:72:
  4611. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4612.  
  4613. inp = 'x, y = (42, 65)\n', run = True, mode = 'exec'
  4614.  
  4615.     def check_ast(inp, run=True, mode='eval'):
  4616.         # expect a Python AST
  4617.         exp = ast.parse(inp, mode=mode)
  4618.         # observe something from xonsh
  4619. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4620. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4621.  
  4622. tests/test_parser.py:62: AttributeError
  4623. ___________________________________________________________________ test_grouped_unpack[0] ___________________________________________________________________
  4624.  
  4625. inp = '(x, y) = (42, 65)\n', run = True, mode = 'exec'
  4626.  
  4627.     def check_stmts(inp, run=True, mode='exec'):
  4628.         if not inp.endswith('\n'):
  4629.             inp += '\n'
  4630. >       check_ast(inp, run=run, mode=mode)
  4631.  
  4632. tests/test_parser.py:72:
  4633. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4634.  
  4635. inp = '(x, y) = (42, 65)\n', run = True, mode = 'exec'
  4636.  
  4637.     def check_ast(inp, run=True, mode='eval'):
  4638.         # expect a Python AST
  4639.         exp = ast.parse(inp, mode=mode)
  4640.         # observe something from xonsh
  4641. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4642. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4643.  
  4644. tests/test_parser.py:62: AttributeError
  4645. _______________________________________________________________ test_double_grouped_unpack[0] ________________________________________________________________
  4646.  
  4647. inp = '(x, y) = (z, a) = (7, 8)\n', run = True, mode = 'exec'
  4648.  
  4649.     def check_stmts(inp, run=True, mode='exec'):
  4650.         if not inp.endswith('\n'):
  4651.             inp += '\n'
  4652. >       check_ast(inp, run=run, mode=mode)
  4653.  
  4654. tests/test_parser.py:72:
  4655. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4656.  
  4657. inp = '(x, y) = (z, a) = (7, 8)\n', run = True, mode = 'exec'
  4658.  
  4659.     def check_ast(inp, run=True, mode='eval'):
  4660.         # expect a Python AST
  4661.         exp = ast.parse(inp, mode=mode)
  4662.         # observe something from xonsh
  4663. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4664. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4665.  
  4666. tests/test_parser.py:62: AttributeError
  4667. ______________________________________________________________ test_double_ungrouped_unpack[0] _______________________________________________________________
  4668.  
  4669. inp = 'x, y = z, a = 7, 8\n', run = True, mode = 'exec'
  4670.  
  4671.     def check_stmts(inp, run=True, mode='exec'):
  4672.         if not inp.endswith('\n'):
  4673.             inp += '\n'
  4674. >       check_ast(inp, run=run, mode=mode)
  4675.  
  4676. tests/test_parser.py:72:
  4677. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4678.  
  4679. inp = 'x, y = z, a = 7, 8\n', run = True, mode = 'exec'
  4680.  
  4681.     def check_ast(inp, run=True, mode='eval'):
  4682.         # expect a Python AST
  4683.         exp = ast.parse(inp, mode=mode)
  4684.         # observe something from xonsh
  4685. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4686. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4687.  
  4688. tests/test_parser.py:62: AttributeError
  4689. ______________________________________________________________________ test_stary_eq[0] ______________________________________________________________________
  4690.  
  4691. inp = '*y, = [1, 2, 3]\n', run = True, mode = 'exec'
  4692.  
  4693.     def check_stmts(inp, run=True, mode='exec'):
  4694.         if not inp.endswith('\n'):
  4695.             inp += '\n'
  4696. >       check_ast(inp, run=run, mode=mode)
  4697.  
  4698. tests/test_parser.py:72:
  4699. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4700.  
  4701. inp = '*y, = [1, 2, 3]\n', run = True, mode = 'exec'
  4702.  
  4703.     def check_ast(inp, run=True, mode='eval'):
  4704.         # expect a Python AST
  4705.         exp = ast.parse(inp, mode=mode)
  4706.         # observe something from xonsh
  4707. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4708. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4709.  
  4710. tests/test_parser.py:62: AttributeError
  4711. ______________________________________________________________________ test_stary_x[0] _______________________________________________________________________
  4712.  
  4713. inp = '*y, x = [1, 2, 3]\n', run = True, mode = 'exec'
  4714.  
  4715.     def check_stmts(inp, run=True, mode='exec'):
  4716.         if not inp.endswith('\n'):
  4717.             inp += '\n'
  4718. >       check_ast(inp, run=run, mode=mode)
  4719.  
  4720. tests/test_parser.py:72:
  4721. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4722.  
  4723. inp = '*y, x = [1, 2, 3]\n', run = True, mode = 'exec'
  4724.  
  4725.     def check_ast(inp, run=True, mode='eval'):
  4726.         # expect a Python AST
  4727.         exp = ast.parse(inp, mode=mode)
  4728.         # observe something from xonsh
  4729. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4730. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4731.  
  4732. tests/test_parser.py:62: AttributeError
  4733. ___________________________________________________________________ test_tuple_x_stary[0] ____________________________________________________________________
  4734.  
  4735. inp = '(x, *y) = [1, 2, 3]\n', run = True, mode = 'exec'
  4736.  
  4737.     def check_stmts(inp, run=True, mode='exec'):
  4738.         if not inp.endswith('\n'):
  4739.             inp += '\n'
  4740. >       check_ast(inp, run=run, mode=mode)
  4741.  
  4742. tests/test_parser.py:72:
  4743. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4744.  
  4745. inp = '(x, *y) = [1, 2, 3]\n', run = True, mode = 'exec'
  4746.  
  4747.     def check_ast(inp, run=True, mode='eval'):
  4748.         # expect a Python AST
  4749.         exp = ast.parse(inp, mode=mode)
  4750.         # observe something from xonsh
  4751. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4752. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4753.  
  4754. tests/test_parser.py:62: AttributeError
  4755. ____________________________________________________________________ test_list_x_stary[0] ____________________________________________________________________
  4756.  
  4757. inp = '[x, *y] = [1, 2, 3]\n', run = True, mode = 'exec'
  4758.  
  4759.     def check_stmts(inp, run=True, mode='exec'):
  4760.         if not inp.endswith('\n'):
  4761.             inp += '\n'
  4762. >       check_ast(inp, run=run, mode=mode)
  4763.  
  4764. tests/test_parser.py:72:
  4765. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4766.  
  4767. inp = '[x, *y] = [1, 2, 3]\n', run = True, mode = 'exec'
  4768.  
  4769.     def check_ast(inp, run=True, mode='eval'):
  4770.         # expect a Python AST
  4771.         exp = ast.parse(inp, mode=mode)
  4772.         # observe something from xonsh
  4773. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4774. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4775.  
  4776. tests/test_parser.py:62: AttributeError
  4777. ____________________________________________________________________ test_bare_x_stary[0] ____________________________________________________________________
  4778.  
  4779. inp = 'x, *y = [1, 2, 3]\n', run = True, mode = 'exec'
  4780.  
  4781.     def check_stmts(inp, run=True, mode='exec'):
  4782.         if not inp.endswith('\n'):
  4783.             inp += '\n'
  4784. >       check_ast(inp, run=run, mode=mode)
  4785.  
  4786. tests/test_parser.py:72:
  4787. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4788.  
  4789. inp = 'x, *y = [1, 2, 3]\n', run = True, mode = 'exec'
  4790.  
  4791.     def check_ast(inp, run=True, mode='eval'):
  4792.         # expect a Python AST
  4793.         exp = ast.parse(inp, mode=mode)
  4794.         # observe something from xonsh
  4795. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4796. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4797.  
  4798. tests/test_parser.py:62: AttributeError
  4799. ___________________________________________________________________ test_bare_x_stary_z[0] ___________________________________________________________________
  4800.  
  4801. inp = 'x, *y, z = [1, 2, 2, 3]\n', run = True, mode = 'exec'
  4802.  
  4803.     def check_stmts(inp, run=True, mode='exec'):
  4804.         if not inp.endswith('\n'):
  4805.             inp += '\n'
  4806. >       check_ast(inp, run=run, mode=mode)
  4807.  
  4808. tests/test_parser.py:72:
  4809. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4810.  
  4811. inp = 'x, *y, z = [1, 2, 2, 3]\n', run = True, mode = 'exec'
  4812.  
  4813.     def check_ast(inp, run=True, mode='eval'):
  4814.         # expect a Python AST
  4815.         exp = ast.parse(inp, mode=mode)
  4816.         # observe something from xonsh
  4817. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4818. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4819.  
  4820. tests/test_parser.py:62: AttributeError
  4821. ____________________________________________________________________ test_equals_list[0] _____________________________________________________________________
  4822.  
  4823. inp = 'x = [42]; x[0] = 65\n', run = True, mode = 'exec'
  4824.  
  4825.     def check_stmts(inp, run=True, mode='exec'):
  4826.         if not inp.endswith('\n'):
  4827.             inp += '\n'
  4828. >       check_ast(inp, run=run, mode=mode)
  4829.  
  4830. tests/test_parser.py:72:
  4831. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4832.  
  4833. inp = 'x = [42]; x[0] = 65\n', run = True, mode = 'exec'
  4834.  
  4835.     def check_ast(inp, run=True, mode='eval'):
  4836.         # expect a Python AST
  4837.         exp = ast.parse(inp, mode=mode)
  4838.         # observe something from xonsh
  4839. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4840. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4841.  
  4842. tests/test_parser.py:62: AttributeError
  4843. ____________________________________________________________________ test_equals_dict[0] _____________________________________________________________________
  4844.  
  4845. inp = 'x = {42: 65}; x[42] = 3\n', run = True, mode = 'exec'
  4846.  
  4847.     def check_stmts(inp, run=True, mode='exec'):
  4848.         if not inp.endswith('\n'):
  4849.             inp += '\n'
  4850. >       check_ast(inp, run=run, mode=mode)
  4851.  
  4852. tests/test_parser.py:72:
  4853. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4854.  
  4855. inp = 'x = {42: 65}; x[42] = 3\n', run = True, mode = 'exec'
  4856.  
  4857.     def check_ast(inp, run=True, mode='eval'):
  4858.         # expect a Python AST
  4859.         exp = ast.parse(inp, mode=mode)
  4860.         # observe something from xonsh
  4861. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4862. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4863.  
  4864. tests/test_parser.py:62: AttributeError
  4865. ____________________________________________________________________ test_equals_attr[0] _____________________________________________________________________
  4866.  
  4867. inp = 'class X(object):\n  pass\nx = X()\nx.a = 65\n', run = True, mode = 'exec'
  4868.  
  4869.     def check_stmts(inp, run=True, mode='exec'):
  4870.         if not inp.endswith('\n'):
  4871.             inp += '\n'
  4872. >       check_ast(inp, run=run, mode=mode)
  4873.  
  4874. tests/test_parser.py:72:
  4875. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4876.  
  4877. inp = 'class X(object):\n  pass\nx = X()\nx.a = 65\n', run = True, mode = 'exec'
  4878.  
  4879.     def check_ast(inp, run=True, mode='eval'):
  4880.         # expect a Python AST
  4881.         exp = ast.parse(inp, mode=mode)
  4882.         # observe something from xonsh
  4883. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4884. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4885.  
  4886. tests/test_parser.py:62: AttributeError
  4887. _____________________________________________________________________ test_dict_keys[0] ______________________________________________________________________
  4888.  
  4889. inp = 'x = {"x": 1}\nx.keys()\n', run = True, mode = 'exec'
  4890.  
  4891.     def check_stmts(inp, run=True, mode='exec'):
  4892.         if not inp.endswith('\n'):
  4893.             inp += '\n'
  4894. >       check_ast(inp, run=run, mode=mode)
  4895.  
  4896. tests/test_parser.py:72:
  4897. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4898.  
  4899. inp = 'x = {"x": 1}\nx.keys()\n', run = True, mode = 'exec'
  4900.  
  4901.     def check_ast(inp, run=True, mode='eval'):
  4902.         # expect a Python AST
  4903.         exp = ast.parse(inp, mode=mode)
  4904.         # observe something from xonsh
  4905. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4906. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4907.  
  4908. tests/test_parser.py:62: AttributeError
  4909. _____________________________________________________________________ test_assert_msg[0] _____________________________________________________________________
  4910.  
  4911. inp = 'assert True, "wow mom"\n', run = True, mode = 'exec'
  4912.  
  4913.     def check_stmts(inp, run=True, mode='exec'):
  4914.         if not inp.endswith('\n'):
  4915.             inp += '\n'
  4916. >       check_ast(inp, run=run, mode=mode)
  4917.  
  4918. tests/test_parser.py:72:
  4919. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4920.  
  4921. inp = 'assert True, "wow mom"\n', run = True, mode = 'exec'
  4922.  
  4923.     def check_ast(inp, run=True, mode='eval'):
  4924.         # expect a Python AST
  4925.         exp = ast.parse(inp, mode=mode)
  4926.         # observe something from xonsh
  4927. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4928. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4929.  
  4930. tests/test_parser.py:62: AttributeError
  4931. _______________________________________________________________________ test_assert[0] _______________________________________________________________________
  4932.  
  4933. inp = 'assert True\n', run = True, mode = 'exec'
  4934.  
  4935.     def check_stmts(inp, run=True, mode='exec'):
  4936.         if not inp.endswith('\n'):
  4937.             inp += '\n'
  4938. >       check_ast(inp, run=run, mode=mode)
  4939.  
  4940. tests/test_parser.py:72:
  4941. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4942.  
  4943. inp = 'assert True\n', run = True, mode = 'exec'
  4944.  
  4945.     def check_ast(inp, run=True, mode='eval'):
  4946.         # expect a Python AST
  4947.         exp = ast.parse(inp, mode=mode)
  4948.         # observe something from xonsh
  4949. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4950. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4951.  
  4952. tests/test_parser.py:62: AttributeError
  4953. ________________________________________________________________________ test_pass[0] ________________________________________________________________________
  4954.  
  4955. inp = 'pass\n', run = True, mode = 'exec'
  4956.  
  4957.     def check_stmts(inp, run=True, mode='exec'):
  4958.         if not inp.endswith('\n'):
  4959.             inp += '\n'
  4960. >       check_ast(inp, run=run, mode=mode)
  4961.  
  4962. tests/test_parser.py:72:
  4963. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4964.  
  4965. inp = 'pass\n', run = True, mode = 'exec'
  4966.  
  4967.     def check_ast(inp, run=True, mode='eval'):
  4968.         # expect a Python AST
  4969.         exp = ast.parse(inp, mode=mode)
  4970.         # observe something from xonsh
  4971. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4972. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4973.  
  4974. tests/test_parser.py:62: AttributeError
  4975. ________________________________________________________________________ test_del[0] _________________________________________________________________________
  4976.  
  4977. inp = 'x = 42; del x\n', run = True, mode = 'exec'
  4978.  
  4979.     def check_stmts(inp, run=True, mode='exec'):
  4980.         if not inp.endswith('\n'):
  4981.             inp += '\n'
  4982. >       check_ast(inp, run=run, mode=mode)
  4983.  
  4984. tests/test_parser.py:72:
  4985. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4986.  
  4987. inp = 'x = 42; del x\n', run = True, mode = 'exec'
  4988.  
  4989.     def check_ast(inp, run=True, mode='eval'):
  4990.         # expect a Python AST
  4991.         exp = ast.parse(inp, mode=mode)
  4992.         # observe something from xonsh
  4993. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  4994. E       AttributeError: 'NoneType' object has no attribute 'parse'
  4995.  
  4996. tests/test_parser.py:62: AttributeError
  4997. _____________________________________________________________________ test_del_comma[0] ______________________________________________________________________
  4998.  
  4999. inp = 'x = 42; del x,\n', run = True, mode = 'exec'
  5000.  
  5001.     def check_stmts(inp, run=True, mode='exec'):
  5002.         if not inp.endswith('\n'):
  5003.             inp += '\n'
  5004. >       check_ast(inp, run=run, mode=mode)
  5005.  
  5006. tests/test_parser.py:72:
  5007. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5008.  
  5009. inp = 'x = 42; del x,\n', run = True, mode = 'exec'
  5010.  
  5011.     def check_ast(inp, run=True, mode='eval'):
  5012.         # expect a Python AST
  5013.         exp = ast.parse(inp, mode=mode)
  5014.         # observe something from xonsh
  5015. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5016. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5017.  
  5018. tests/test_parser.py:62: AttributeError
  5019. ______________________________________________________________________ test_del_two[0] _______________________________________________________________________
  5020.  
  5021. inp = 'x = 42; y = 65; del x, y\n', run = True, mode = 'exec'
  5022.  
  5023.     def check_stmts(inp, run=True, mode='exec'):
  5024.         if not inp.endswith('\n'):
  5025.             inp += '\n'
  5026. >       check_ast(inp, run=run, mode=mode)
  5027.  
  5028. tests/test_parser.py:72:
  5029. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5030.  
  5031. inp = 'x = 42; y = 65; del x, y\n', run = True, mode = 'exec'
  5032.  
  5033.     def check_ast(inp, run=True, mode='eval'):
  5034.         # expect a Python AST
  5035.         exp = ast.parse(inp, mode=mode)
  5036.         # observe something from xonsh
  5037. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5038. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5039.  
  5040. tests/test_parser.py:62: AttributeError
  5041. ___________________________________________________________________ test_del_two_comma[0] ____________________________________________________________________
  5042.  
  5043. inp = 'x = 42; y = 65; del x, y,\n', run = True, mode = 'exec'
  5044.  
  5045.     def check_stmts(inp, run=True, mode='exec'):
  5046.         if not inp.endswith('\n'):
  5047.             inp += '\n'
  5048. >       check_ast(inp, run=run, mode=mode)
  5049.  
  5050. tests/test_parser.py:72:
  5051. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5052.  
  5053. inp = 'x = 42; y = 65; del x, y,\n', run = True, mode = 'exec'
  5054.  
  5055.     def check_ast(inp, run=True, mode='eval'):
  5056.         # expect a Python AST
  5057.         exp = ast.parse(inp, mode=mode)
  5058.         # observe something from xonsh
  5059. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5060. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5061.  
  5062. tests/test_parser.py:62: AttributeError
  5063. _______________________________________________________________________ test_raise[0] ________________________________________________________________________
  5064.  
  5065. inp = 'raise\n', run = False, mode = 'exec'
  5066.  
  5067.     def check_stmts(inp, run=True, mode='exec'):
  5068.         if not inp.endswith('\n'):
  5069.             inp += '\n'
  5070. >       check_ast(inp, run=run, mode=mode)
  5071.  
  5072. tests/test_parser.py:72:
  5073. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5074.  
  5075. inp = 'raise\n', run = False, mode = 'exec'
  5076.  
  5077.     def check_ast(inp, run=True, mode='eval'):
  5078.         # expect a Python AST
  5079.         exp = ast.parse(inp, mode=mode)
  5080.         # observe something from xonsh
  5081. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5082. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5083.  
  5084. tests/test_parser.py:62: AttributeError
  5085. ______________________________________________________________________ test_raise_x[0] _______________________________________________________________________
  5086.  
  5087. inp = 'raise TypeError\n', run = False, mode = 'exec'
  5088.  
  5089.     def check_stmts(inp, run=True, mode='exec'):
  5090.         if not inp.endswith('\n'):
  5091.             inp += '\n'
  5092. >       check_ast(inp, run=run, mode=mode)
  5093.  
  5094. tests/test_parser.py:72:
  5095. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5096.  
  5097. inp = 'raise TypeError\n', run = False, mode = 'exec'
  5098.  
  5099.     def check_ast(inp, run=True, mode='eval'):
  5100.         # expect a Python AST
  5101.         exp = ast.parse(inp, mode=mode)
  5102.         # observe something from xonsh
  5103. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5104. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5105.  
  5106. tests/test_parser.py:62: AttributeError
  5107. ____________________________________________________________________ test_raise_x_from[0] ____________________________________________________________________
  5108.  
  5109. inp = 'raise TypeError from x\n', run = False, mode = 'exec'
  5110.  
  5111.     def check_stmts(inp, run=True, mode='exec'):
  5112.         if not inp.endswith('\n'):
  5113.             inp += '\n'
  5114. >       check_ast(inp, run=run, mode=mode)
  5115.  
  5116. tests/test_parser.py:72:
  5117. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5118.  
  5119. inp = 'raise TypeError from x\n', run = False, mode = 'exec'
  5120.  
  5121.     def check_ast(inp, run=True, mode='eval'):
  5122.         # expect a Python AST
  5123.         exp = ast.parse(inp, mode=mode)
  5124.         # observe something from xonsh
  5125. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5126. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5127.  
  5128. tests/test_parser.py:62: AttributeError
  5129. ______________________________________________________________________ test_import_x[0] ______________________________________________________________________
  5130.  
  5131. inp = 'import x\n', run = False, mode = 'exec'
  5132.  
  5133.     def check_stmts(inp, run=True, mode='exec'):
  5134.         if not inp.endswith('\n'):
  5135.             inp += '\n'
  5136. >       check_ast(inp, run=run, mode=mode)
  5137.  
  5138. tests/test_parser.py:72:
  5139. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5140.  
  5141. inp = 'import x\n', run = False, mode = 'exec'
  5142.  
  5143.     def check_ast(inp, run=True, mode='eval'):
  5144.         # expect a Python AST
  5145.         exp = ast.parse(inp, mode=mode)
  5146.         # observe something from xonsh
  5147. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5148. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5149.  
  5150. tests/test_parser.py:62: AttributeError
  5151. _____________________________________________________________________ test_import_xy[0] ______________________________________________________________________
  5152.  
  5153. inp = 'import x.y\n', run = False, mode = 'exec'
  5154.  
  5155.     def check_stmts(inp, run=True, mode='exec'):
  5156.         if not inp.endswith('\n'):
  5157.             inp += '\n'
  5158. >       check_ast(inp, run=run, mode=mode)
  5159.  
  5160. tests/test_parser.py:72:
  5161. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5162.  
  5163. inp = 'import x.y\n', run = False, mode = 'exec'
  5164.  
  5165.     def check_ast(inp, run=True, mode='eval'):
  5166.         # expect a Python AST
  5167.         exp = ast.parse(inp, mode=mode)
  5168.         # observe something from xonsh
  5169. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5170. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5171.  
  5172. tests/test_parser.py:62: AttributeError
  5173. _____________________________________________________________________ test_import_xyz[0] _____________________________________________________________________
  5174.  
  5175. inp = 'import x.y.z\n', run = False, mode = 'exec'
  5176.  
  5177.     def check_stmts(inp, run=True, mode='exec'):
  5178.         if not inp.endswith('\n'):
  5179.             inp += '\n'
  5180. >       check_ast(inp, run=run, mode=mode)
  5181.  
  5182. tests/test_parser.py:72:
  5183. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5184.  
  5185. inp = 'import x.y.z\n', run = False, mode = 'exec'
  5186.  
  5187.     def check_ast(inp, run=True, mode='eval'):
  5188.         # expect a Python AST
  5189.         exp = ast.parse(inp, mode=mode)
  5190.         # observe something from xonsh
  5191. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5192. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5193.  
  5194. tests/test_parser.py:62: AttributeError
  5195. __________________________________________________________________ test_from_x_import_y[0] ___________________________________________________________________
  5196.  
  5197. inp = 'from x import y\n', run = False, mode = 'exec'
  5198.  
  5199.     def check_stmts(inp, run=True, mode='exec'):
  5200.         if not inp.endswith('\n'):
  5201.             inp += '\n'
  5202. >       check_ast(inp, run=run, mode=mode)
  5203.  
  5204. tests/test_parser.py:72:
  5205. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5206.  
  5207. inp = 'from x import y\n', run = False, mode = 'exec'
  5208.  
  5209.     def check_ast(inp, run=True, mode='eval'):
  5210.         # expect a Python AST
  5211.         exp = ast.parse(inp, mode=mode)
  5212.         # observe something from xonsh
  5213. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5214. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5215.  
  5216. tests/test_parser.py:62: AttributeError
  5217. _________________________________________________________________ test_from_dot_import_y[0] __________________________________________________________________
  5218.  
  5219. inp = 'from . import y\n', run = False, mode = 'exec'
  5220.  
  5221.     def check_stmts(inp, run=True, mode='exec'):
  5222.         if not inp.endswith('\n'):
  5223.             inp += '\n'
  5224. >       check_ast(inp, run=run, mode=mode)
  5225.  
  5226. tests/test_parser.py:72:
  5227. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5228.  
  5229. inp = 'from . import y\n', run = False, mode = 'exec'
  5230.  
  5231.     def check_ast(inp, run=True, mode='eval'):
  5232.         # expect a Python AST
  5233.         exp = ast.parse(inp, mode=mode)
  5234.         # observe something from xonsh
  5235. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5236. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5237.  
  5238. tests/test_parser.py:62: AttributeError
  5239. _________________________________________________________________ test_from_dotx_import_y[0] _________________________________________________________________
  5240.  
  5241. inp = 'from .x import y\n', run = False, mode = 'exec'
  5242.  
  5243.     def check_stmts(inp, run=True, mode='exec'):
  5244.         if not inp.endswith('\n'):
  5245.             inp += '\n'
  5246. >       check_ast(inp, run=run, mode=mode)
  5247.  
  5248. tests/test_parser.py:72:
  5249. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5250.  
  5251. inp = 'from .x import y\n', run = False, mode = 'exec'
  5252.  
  5253.     def check_ast(inp, run=True, mode='eval'):
  5254.         # expect a Python AST
  5255.         exp = ast.parse(inp, mode=mode)
  5256.         # observe something from xonsh
  5257. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5258. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5259.  
  5260. tests/test_parser.py:62: AttributeError
  5261. _______________________________________________________________ test_from_dotdotx_import_y[0] ________________________________________________________________
  5262.  
  5263. inp = 'from ..x import y\n', run = False, mode = 'exec'
  5264.  
  5265.     def check_stmts(inp, run=True, mode='exec'):
  5266.         if not inp.endswith('\n'):
  5267.             inp += '\n'
  5268. >       check_ast(inp, run=run, mode=mode)
  5269.  
  5270. tests/test_parser.py:72:
  5271. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5272.  
  5273. inp = 'from ..x import y\n', run = False, mode = 'exec'
  5274.  
  5275.     def check_ast(inp, run=True, mode='eval'):
  5276.         # expect a Python AST
  5277.         exp = ast.parse(inp, mode=mode)
  5278.         # observe something from xonsh
  5279. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5280. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5281.  
  5282. tests/test_parser.py:62: AttributeError
  5283. ______________________________________________________________ test_from_dotdotdotx_import_y[0] ______________________________________________________________
  5284.  
  5285. inp = 'from ...x import y\n', run = False, mode = 'exec'
  5286.  
  5287.     def check_stmts(inp, run=True, mode='exec'):
  5288.         if not inp.endswith('\n'):
  5289.             inp += '\n'
  5290. >       check_ast(inp, run=run, mode=mode)
  5291.  
  5292. tests/test_parser.py:72:
  5293. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5294.  
  5295. inp = 'from ...x import y\n', run = False, mode = 'exec'
  5296.  
  5297.     def check_ast(inp, run=True, mode='eval'):
  5298.         # expect a Python AST
  5299.         exp = ast.parse(inp, mode=mode)
  5300.         # observe something from xonsh
  5301. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5302. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5303.  
  5304. tests/test_parser.py:62: AttributeError
  5305. ____________________________________________________________ test_from_dotdotdotdotx_import_y[0] _____________________________________________________________
  5306.  
  5307. inp = 'from ....x import y\n', run = False, mode = 'exec'
  5308.  
  5309.     def check_stmts(inp, run=True, mode='exec'):
  5310.         if not inp.endswith('\n'):
  5311.             inp += '\n'
  5312. >       check_ast(inp, run=run, mode=mode)
  5313.  
  5314. tests/test_parser.py:72:
  5315. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5316.  
  5317. inp = 'from ....x import y\n', run = False, mode = 'exec'
  5318.  
  5319.     def check_ast(inp, run=True, mode='eval'):
  5320.         # expect a Python AST
  5321.         exp = ast.parse(inp, mode=mode)
  5322.         # observe something from xonsh
  5323. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5324. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5325.  
  5326. tests/test_parser.py:62: AttributeError
  5327. __________________________________________________________________ test_from_import_x_y[0] ___________________________________________________________________
  5328.  
  5329. inp = 'import x, y\n', run = False, mode = 'exec'
  5330.  
  5331.     def check_stmts(inp, run=True, mode='exec'):
  5332.         if not inp.endswith('\n'):
  5333.             inp += '\n'
  5334. >       check_ast(inp, run=run, mode=mode)
  5335.  
  5336. tests/test_parser.py:72:
  5337. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5338.  
  5339. inp = 'import x, y\n', run = False, mode = 'exec'
  5340.  
  5341.     def check_ast(inp, run=True, mode='eval'):
  5342.         # expect a Python AST
  5343.         exp = ast.parse(inp, mode=mode)
  5344.         # observe something from xonsh
  5345. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5346. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5347.  
  5348. tests/test_parser.py:62: AttributeError
  5349. _________________________________________________________________ test_from_import_x_y_z[0] __________________________________________________________________
  5350.  
  5351. inp = 'import x, y, z\n', run = False, mode = 'exec'
  5352.  
  5353.     def check_stmts(inp, run=True, mode='exec'):
  5354.         if not inp.endswith('\n'):
  5355.             inp += '\n'
  5356. >       check_ast(inp, run=run, mode=mode)
  5357.  
  5358. tests/test_parser.py:72:
  5359. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5360.  
  5361. inp = 'import x, y, z\n', run = False, mode = 'exec'
  5362.  
  5363.     def check_ast(inp, run=True, mode='eval'):
  5364.         # expect a Python AST
  5365.         exp = ast.parse(inp, mode=mode)
  5366.         # observe something from xonsh
  5367. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5368. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5369.  
  5370. tests/test_parser.py:62: AttributeError
  5371. ________________________________________________________________ test_from_dot_import_x_y[0] _________________________________________________________________
  5372.  
  5373. inp = 'from . import x, y\n', run = False, mode = 'exec'
  5374.  
  5375.     def check_stmts(inp, run=True, mode='exec'):
  5376.         if not inp.endswith('\n'):
  5377.             inp += '\n'
  5378. >       check_ast(inp, run=run, mode=mode)
  5379.  
  5380. tests/test_parser.py:72:
  5381. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5382.  
  5383. inp = 'from . import x, y\n', run = False, mode = 'exec'
  5384.  
  5385.     def check_ast(inp, run=True, mode='eval'):
  5386.         # expect a Python AST
  5387.         exp = ast.parse(inp, mode=mode)
  5388.         # observe something from xonsh
  5389. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5390. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5391.  
  5392. tests/test_parser.py:62: AttributeError
  5393. _______________________________________________________________ test_from_dot_import_x_y_z[0] ________________________________________________________________
  5394.  
  5395. inp = 'from . import x, y, z\n', run = False, mode = 'exec'
  5396.  
  5397.     def check_stmts(inp, run=True, mode='exec'):
  5398.         if not inp.endswith('\n'):
  5399.             inp += '\n'
  5400. >       check_ast(inp, run=run, mode=mode)
  5401.  
  5402. tests/test_parser.py:72:
  5403. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5404.  
  5405. inp = 'from . import x, y, z\n', run = False, mode = 'exec'
  5406.  
  5407.     def check_ast(inp, run=True, mode='eval'):
  5408.         # expect a Python AST
  5409.         exp = ast.parse(inp, mode=mode)
  5410.         # observe something from xonsh
  5411. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5412. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5413.  
  5414. tests/test_parser.py:62: AttributeError
  5415. _____________________________________________________________ test_from_dot_import_group_x_y[0] ______________________________________________________________
  5416.  
  5417. inp = 'from . import (x, y)\n', run = False, mode = 'exec'
  5418.  
  5419.     def check_stmts(inp, run=True, mode='exec'):
  5420.         if not inp.endswith('\n'):
  5421.             inp += '\n'
  5422. >       check_ast(inp, run=run, mode=mode)
  5423.  
  5424. tests/test_parser.py:72:
  5425. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5426.  
  5427. inp = 'from . import (x, y)\n', run = False, mode = 'exec'
  5428.  
  5429.     def check_ast(inp, run=True, mode='eval'):
  5430.         # expect a Python AST
  5431.         exp = ast.parse(inp, mode=mode)
  5432.         # observe something from xonsh
  5433. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5434. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5435.  
  5436. tests/test_parser.py:62: AttributeError
  5437. ___________________________________________________________________ test_import_x_as_y[0] ____________________________________________________________________
  5438.  
  5439. inp = 'import x as y\n', run = False, mode = 'exec'
  5440.  
  5441.     def check_stmts(inp, run=True, mode='exec'):
  5442.         if not inp.endswith('\n'):
  5443.             inp += '\n'
  5444. >       check_ast(inp, run=run, mode=mode)
  5445.  
  5446. tests/test_parser.py:72:
  5447. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5448.  
  5449. inp = 'import x as y\n', run = False, mode = 'exec'
  5450.  
  5451.     def check_ast(inp, run=True, mode='eval'):
  5452.         # expect a Python AST
  5453.         exp = ast.parse(inp, mode=mode)
  5454.         # observe something from xonsh
  5455. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5456. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5457.  
  5458. tests/test_parser.py:62: AttributeError
  5459. ___________________________________________________________________ test_import_xy_as_z[0] ___________________________________________________________________
  5460.  
  5461. inp = 'import x.y as z\n', run = False, mode = 'exec'
  5462.  
  5463.     def check_stmts(inp, run=True, mode='exec'):
  5464.         if not inp.endswith('\n'):
  5465.             inp += '\n'
  5466. >       check_ast(inp, run=run, mode=mode)
  5467.  
  5468. tests/test_parser.py:72:
  5469. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5470.  
  5471. inp = 'import x.y as z\n', run = False, mode = 'exec'
  5472.  
  5473.     def check_ast(inp, run=True, mode='eval'):
  5474.         # expect a Python AST
  5475.         exp = ast.parse(inp, mode=mode)
  5476.         # observe something from xonsh
  5477. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5478. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5479.  
  5480. tests/test_parser.py:62: AttributeError
  5481. __________________________________________________________________ test_import_x_y_as_z[0] ___________________________________________________________________
  5482.  
  5483. inp = 'import x, y as z\n', run = False, mode = 'exec'
  5484.  
  5485.     def check_stmts(inp, run=True, mode='exec'):
  5486.         if not inp.endswith('\n'):
  5487.             inp += '\n'
  5488. >       check_ast(inp, run=run, mode=mode)
  5489.  
  5490. tests/test_parser.py:72:
  5491. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5492.  
  5493. inp = 'import x, y as z\n', run = False, mode = 'exec'
  5494.  
  5495.     def check_ast(inp, run=True, mode='eval'):
  5496.         # expect a Python AST
  5497.         exp = ast.parse(inp, mode=mode)
  5498.         # observe something from xonsh
  5499. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5500. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5501.  
  5502. tests/test_parser.py:62: AttributeError
  5503. __________________________________________________________________ test_import_x_as_y_z[0] ___________________________________________________________________
  5504.  
  5505. inp = 'import x as y, z\n', run = False, mode = 'exec'
  5506.  
  5507.     def check_stmts(inp, run=True, mode='exec'):
  5508.         if not inp.endswith('\n'):
  5509.             inp += '\n'
  5510. >       check_ast(inp, run=run, mode=mode)
  5511.  
  5512. tests/test_parser.py:72:
  5513. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5514.  
  5515. inp = 'import x as y, z\n', run = False, mode = 'exec'
  5516.  
  5517.     def check_ast(inp, run=True, mode='eval'):
  5518.         # expect a Python AST
  5519.         exp = ast.parse(inp, mode=mode)
  5520.         # observe something from xonsh
  5521. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5522. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5523.  
  5524. tests/test_parser.py:62: AttributeError
  5525. ________________________________________________________________ test_import_x_as_y_z_as_a[0] ________________________________________________________________
  5526.  
  5527. inp = 'import x as y, z as a\n', run = False, mode = 'exec'
  5528.  
  5529.     def check_stmts(inp, run=True, mode='exec'):
  5530.         if not inp.endswith('\n'):
  5531.             inp += '\n'
  5532. >       check_ast(inp, run=run, mode=mode)
  5533.  
  5534. tests/test_parser.py:72:
  5535. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5536.  
  5537. inp = 'import x as y, z as a\n', run = False, mode = 'exec'
  5538.  
  5539.     def check_ast(inp, run=True, mode='eval'):
  5540.         # expect a Python AST
  5541.         exp = ast.parse(inp, mode=mode)
  5542.         # observe something from xonsh
  5543. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5544. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5545.  
  5546. tests/test_parser.py:62: AttributeError
  5547. _______________________________________________________________ test_from_dot_import_x_as_y[0] _______________________________________________________________
  5548.  
  5549. inp = 'from . import x as y\n', run = False, mode = 'exec'
  5550.  
  5551.     def check_stmts(inp, run=True, mode='exec'):
  5552.         if not inp.endswith('\n'):
  5553.             inp += '\n'
  5554. >       check_ast(inp, run=run, mode=mode)
  5555.  
  5556. tests/test_parser.py:72:
  5557. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5558.  
  5559. inp = 'from . import x as y\n', run = False, mode = 'exec'
  5560.  
  5561.     def check_ast(inp, run=True, mode='eval'):
  5562.         # expect a Python AST
  5563.         exp = ast.parse(inp, mode=mode)
  5564.         # observe something from xonsh
  5565. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5566. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5567.  
  5568. tests/test_parser.py:62: AttributeError
  5569. _________________________________________________________________ test_from_x_import_star[0] _________________________________________________________________
  5570.  
  5571. inp = 'from x import *\n', run = False, mode = 'exec'
  5572.  
  5573.     def check_stmts(inp, run=True, mode='exec'):
  5574.         if not inp.endswith('\n'):
  5575.             inp += '\n'
  5576. >       check_ast(inp, run=run, mode=mode)
  5577.  
  5578. tests/test_parser.py:72:
  5579. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5580.  
  5581. inp = 'from x import *\n', run = False, mode = 'exec'
  5582.  
  5583.     def check_ast(inp, run=True, mode='eval'):
  5584.         # expect a Python AST
  5585.         exp = ast.parse(inp, mode=mode)
  5586.         # observe something from xonsh
  5587. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5588. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5589.  
  5590. tests/test_parser.py:62: AttributeError
  5591. ________________________________________________________________ test_from_x_import_y_as_z[0] ________________________________________________________________
  5592.  
  5593. inp = 'from x import y as z\n', run = False, mode = 'exec'
  5594.  
  5595.     def check_stmts(inp, run=True, mode='exec'):
  5596.         if not inp.endswith('\n'):
  5597.             inp += '\n'
  5598. >       check_ast(inp, run=run, mode=mode)
  5599.  
  5600. tests/test_parser.py:72:
  5601. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5602.  
  5603. inp = 'from x import y as z\n', run = False, mode = 'exec'
  5604.  
  5605.     def check_ast(inp, run=True, mode='eval'):
  5606.         # expect a Python AST
  5607.         exp = ast.parse(inp, mode=mode)
  5608.         # observe something from xonsh
  5609. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5610. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5611.  
  5612. tests/test_parser.py:62: AttributeError
  5613. ____________________________________________________________ test_from_x_import_y_as_z_a_as_b[0] _____________________________________________________________
  5614.  
  5615. inp = 'from x import y as z, a as b\n', run = False, mode = 'exec'
  5616.  
  5617.     def check_stmts(inp, run=True, mode='exec'):
  5618.         if not inp.endswith('\n'):
  5619.             inp += '\n'
  5620. >       check_ast(inp, run=run, mode=mode)
  5621.  
  5622. tests/test_parser.py:72:
  5623. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5624.  
  5625. inp = 'from x import y as z, a as b\n', run = False, mode = 'exec'
  5626.  
  5627.     def check_ast(inp, run=True, mode='eval'):
  5628.         # expect a Python AST
  5629.         exp = ast.parse(inp, mode=mode)
  5630.         # observe something from xonsh
  5631. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5632. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5633.  
  5634. tests/test_parser.py:62: AttributeError
  5635. _______________________________________________________ test_from_dotx_import_y_as_z_a_as_b_c_as_d[0] ________________________________________________________
  5636.  
  5637. inp = 'from .x import y as z, a as b, c as d\n', run = False, mode = 'exec'
  5638.  
  5639.     def check_stmts(inp, run=True, mode='exec'):
  5640.         if not inp.endswith('\n'):
  5641.             inp += '\n'
  5642. >       check_ast(inp, run=run, mode=mode)
  5643.  
  5644. tests/test_parser.py:72:
  5645. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5646.  
  5647. inp = 'from .x import y as z, a as b, c as d\n', run = False, mode = 'exec'
  5648.  
  5649.     def check_ast(inp, run=True, mode='eval'):
  5650.         # expect a Python AST
  5651.         exp = ast.parse(inp, mode=mode)
  5652.         # observe something from xonsh
  5653. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5654. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5655.  
  5656. tests/test_parser.py:62: AttributeError
  5657. ______________________________________________________________________ test_continue[0] ______________________________________________________________________
  5658.  
  5659. inp = 'continue\n', run = False, mode = 'exec'
  5660.  
  5661.     def check_stmts(inp, run=True, mode='exec'):
  5662.         if not inp.endswith('\n'):
  5663.             inp += '\n'
  5664. >       check_ast(inp, run=run, mode=mode)
  5665.  
  5666. tests/test_parser.py:72:
  5667. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5668.  
  5669. inp = 'continue\n', run = False, mode = 'exec'
  5670.  
  5671.     def check_ast(inp, run=True, mode='eval'):
  5672.         # expect a Python AST
  5673.         exp = ast.parse(inp, mode=mode)
  5674.         # observe something from xonsh
  5675. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5676. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5677.  
  5678. tests/test_parser.py:62: AttributeError
  5679. _______________________________________________________________________ test_break[0] ________________________________________________________________________
  5680.  
  5681. inp = 'break\n', run = False, mode = 'exec'
  5682.  
  5683.     def check_stmts(inp, run=True, mode='exec'):
  5684.         if not inp.endswith('\n'):
  5685.             inp += '\n'
  5686. >       check_ast(inp, run=run, mode=mode)
  5687.  
  5688. tests/test_parser.py:72:
  5689. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5690.  
  5691. inp = 'break\n', run = False, mode = 'exec'
  5692.  
  5693.     def check_ast(inp, run=True, mode='eval'):
  5694.         # expect a Python AST
  5695.         exp = ast.parse(inp, mode=mode)
  5696.         # observe something from xonsh
  5697. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5698. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5699.  
  5700. tests/test_parser.py:62: AttributeError
  5701. _______________________________________________________________________ test_global[0] _______________________________________________________________________
  5702.  
  5703. inp = 'global x\n', run = False, mode = 'exec'
  5704.  
  5705.     def check_stmts(inp, run=True, mode='exec'):
  5706.         if not inp.endswith('\n'):
  5707.             inp += '\n'
  5708. >       check_ast(inp, run=run, mode=mode)
  5709.  
  5710. tests/test_parser.py:72:
  5711. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5712.  
  5713. inp = 'global x\n', run = False, mode = 'exec'
  5714.  
  5715.     def check_ast(inp, run=True, mode='eval'):
  5716.         # expect a Python AST
  5717.         exp = ast.parse(inp, mode=mode)
  5718.         # observe something from xonsh
  5719. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5720. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5721.  
  5722. tests/test_parser.py:62: AttributeError
  5723. _____________________________________________________________________ test_global_xy[0] ______________________________________________________________________
  5724.  
  5725. inp = 'global x, y\n', run = False, mode = 'exec'
  5726.  
  5727.     def check_stmts(inp, run=True, mode='exec'):
  5728.         if not inp.endswith('\n'):
  5729.             inp += '\n'
  5730. >       check_ast(inp, run=run, mode=mode)
  5731.  
  5732. tests/test_parser.py:72:
  5733. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5734.  
  5735. inp = 'global x, y\n', run = False, mode = 'exec'
  5736.  
  5737.     def check_ast(inp, run=True, mode='eval'):
  5738.         # expect a Python AST
  5739.         exp = ast.parse(inp, mode=mode)
  5740.         # observe something from xonsh
  5741. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5742. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5743.  
  5744. tests/test_parser.py:62: AttributeError
  5745. _____________________________________________________________________ test_nonlocal_x[0] _____________________________________________________________________
  5746.  
  5747. inp = 'nonlocal x\n', run = False, mode = 'exec'
  5748.  
  5749.     def check_stmts(inp, run=True, mode='exec'):
  5750.         if not inp.endswith('\n'):
  5751.             inp += '\n'
  5752. >       check_ast(inp, run=run, mode=mode)
  5753.  
  5754. tests/test_parser.py:72:
  5755. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5756.  
  5757. inp = 'nonlocal x\n', run = False, mode = 'exec'
  5758.  
  5759.     def check_ast(inp, run=True, mode='eval'):
  5760.         # expect a Python AST
  5761.         exp = ast.parse(inp, mode=mode)
  5762.         # observe something from xonsh
  5763. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5764. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5765.  
  5766. tests/test_parser.py:62: AttributeError
  5767. ____________________________________________________________________ test_nonlocal_xy[0] _____________________________________________________________________
  5768.  
  5769. inp = 'nonlocal x, y\n', run = False, mode = 'exec'
  5770.  
  5771.     def check_stmts(inp, run=True, mode='exec'):
  5772.         if not inp.endswith('\n'):
  5773.             inp += '\n'
  5774. >       check_ast(inp, run=run, mode=mode)
  5775.  
  5776. tests/test_parser.py:72:
  5777. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5778.  
  5779. inp = 'nonlocal x, y\n', run = False, mode = 'exec'
  5780.  
  5781.     def check_ast(inp, run=True, mode='eval'):
  5782.         # expect a Python AST
  5783.         exp = ast.parse(inp, mode=mode)
  5784.         # observe something from xonsh
  5785. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5786. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5787.  
  5788. tests/test_parser.py:62: AttributeError
  5789. _______________________________________________________________________ test_yield[0] ________________________________________________________________________
  5790.  
  5791. inp = 'yield\n', run = False, mode = 'exec'
  5792.  
  5793.     def check_stmts(inp, run=True, mode='exec'):
  5794.         if not inp.endswith('\n'):
  5795.             inp += '\n'
  5796. >       check_ast(inp, run=run, mode=mode)
  5797.  
  5798. tests/test_parser.py:72:
  5799. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5800.  
  5801. inp = 'yield\n', run = False, mode = 'exec'
  5802.  
  5803.     def check_ast(inp, run=True, mode='eval'):
  5804.         # expect a Python AST
  5805.         exp = ast.parse(inp, mode=mode)
  5806.         # observe something from xonsh
  5807. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5808. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5809.  
  5810. tests/test_parser.py:62: AttributeError
  5811. ______________________________________________________________________ test_yield_x[0] _______________________________________________________________________
  5812.  
  5813. inp = 'yield x\n', run = False, mode = 'exec'
  5814.  
  5815.     def check_stmts(inp, run=True, mode='exec'):
  5816.         if not inp.endswith('\n'):
  5817.             inp += '\n'
  5818. >       check_ast(inp, run=run, mode=mode)
  5819.  
  5820. tests/test_parser.py:72:
  5821. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5822.  
  5823. inp = 'yield x\n', run = False, mode = 'exec'
  5824.  
  5825.     def check_ast(inp, run=True, mode='eval'):
  5826.         # expect a Python AST
  5827.         exp = ast.parse(inp, mode=mode)
  5828.         # observe something from xonsh
  5829. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5830. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5831.  
  5832. tests/test_parser.py:62: AttributeError
  5833. ___________________________________________________________________ test_yield_x_comma[0] ____________________________________________________________________
  5834.  
  5835. inp = 'yield x,\n', run = False, mode = 'exec'
  5836.  
  5837.     def check_stmts(inp, run=True, mode='exec'):
  5838.         if not inp.endswith('\n'):
  5839.             inp += '\n'
  5840. >       check_ast(inp, run=run, mode=mode)
  5841.  
  5842. tests/test_parser.py:72:
  5843. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5844.  
  5845. inp = 'yield x,\n', run = False, mode = 'exec'
  5846.  
  5847.     def check_ast(inp, run=True, mode='eval'):
  5848.         # expect a Python AST
  5849.         exp = ast.parse(inp, mode=mode)
  5850.         # observe something from xonsh
  5851. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5852. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5853.  
  5854. tests/test_parser.py:62: AttributeError
  5855. _____________________________________________________________________ test_yield_x_y[0] ______________________________________________________________________
  5856.  
  5857. inp = 'yield x, y\n', run = False, mode = 'exec'
  5858.  
  5859.     def check_stmts(inp, run=True, mode='exec'):
  5860.         if not inp.endswith('\n'):
  5861.             inp += '\n'
  5862. >       check_ast(inp, run=run, mode=mode)
  5863.  
  5864. tests/test_parser.py:72:
  5865. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5866.  
  5867. inp = 'yield x, y\n', run = False, mode = 'exec'
  5868.  
  5869.     def check_ast(inp, run=True, mode='eval'):
  5870.         # expect a Python AST
  5871.         exp = ast.parse(inp, mode=mode)
  5872.         # observe something from xonsh
  5873. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5874. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5875.  
  5876. tests/test_parser.py:62: AttributeError
  5877. ____________________________________________________________________ test_yield_from_x[0] ____________________________________________________________________
  5878.  
  5879. inp = 'yield from x\n', run = False, mode = 'exec'
  5880.  
  5881.     def check_stmts(inp, run=True, mode='exec'):
  5882.         if not inp.endswith('\n'):
  5883.             inp += '\n'
  5884. >       check_ast(inp, run=run, mode=mode)
  5885.  
  5886. tests/test_parser.py:72:
  5887. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5888.  
  5889. inp = 'yield from x\n', run = False, mode = 'exec'
  5890.  
  5891.     def check_ast(inp, run=True, mode='eval'):
  5892.         # expect a Python AST
  5893.         exp = ast.parse(inp, mode=mode)
  5894.         # observe something from xonsh
  5895. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5896. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5897.  
  5898. tests/test_parser.py:62: AttributeError
  5899. _______________________________________________________________________ test_return[0] _______________________________________________________________________
  5900.  
  5901. inp = 'return\n', run = False, mode = 'exec'
  5902.  
  5903.     def check_stmts(inp, run=True, mode='exec'):
  5904.         if not inp.endswith('\n'):
  5905.             inp += '\n'
  5906. >       check_ast(inp, run=run, mode=mode)
  5907.  
  5908. tests/test_parser.py:72:
  5909. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5910.  
  5911. inp = 'return\n', run = False, mode = 'exec'
  5912.  
  5913.     def check_ast(inp, run=True, mode='eval'):
  5914.         # expect a Python AST
  5915.         exp = ast.parse(inp, mode=mode)
  5916.         # observe something from xonsh
  5917. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5918. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5919.  
  5920. tests/test_parser.py:62: AttributeError
  5921. ______________________________________________________________________ test_return_x[0] ______________________________________________________________________
  5922.  
  5923. inp = 'return x\n', run = False, mode = 'exec'
  5924.  
  5925.     def check_stmts(inp, run=True, mode='exec'):
  5926.         if not inp.endswith('\n'):
  5927.             inp += '\n'
  5928. >       check_ast(inp, run=run, mode=mode)
  5929.  
  5930. tests/test_parser.py:72:
  5931. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5932.  
  5933. inp = 'return x\n', run = False, mode = 'exec'
  5934.  
  5935.     def check_ast(inp, run=True, mode='eval'):
  5936.         # expect a Python AST
  5937.         exp = ast.parse(inp, mode=mode)
  5938.         # observe something from xonsh
  5939. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5940. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5941.  
  5942. tests/test_parser.py:62: AttributeError
  5943. ___________________________________________________________________ test_return_x_comma[0] ___________________________________________________________________
  5944.  
  5945. inp = 'return x,\n', run = False, mode = 'exec'
  5946.  
  5947.     def check_stmts(inp, run=True, mode='exec'):
  5948.         if not inp.endswith('\n'):
  5949.             inp += '\n'
  5950. >       check_ast(inp, run=run, mode=mode)
  5951.  
  5952. tests/test_parser.py:72:
  5953. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5954.  
  5955. inp = 'return x,\n', run = False, mode = 'exec'
  5956.  
  5957.     def check_ast(inp, run=True, mode='eval'):
  5958.         # expect a Python AST
  5959.         exp = ast.parse(inp, mode=mode)
  5960.         # observe something from xonsh
  5961. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5962. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5963.  
  5964. tests/test_parser.py:62: AttributeError
  5965. _____________________________________________________________________ test_return_x_y[0] _____________________________________________________________________
  5966.  
  5967. inp = 'return x, y\n', run = False, mode = 'exec'
  5968.  
  5969.     def check_stmts(inp, run=True, mode='exec'):
  5970.         if not inp.endswith('\n'):
  5971.             inp += '\n'
  5972. >       check_ast(inp, run=run, mode=mode)
  5973.  
  5974. tests/test_parser.py:72:
  5975. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5976.  
  5977. inp = 'return x, y\n', run = False, mode = 'exec'
  5978.  
  5979.     def check_ast(inp, run=True, mode='eval'):
  5980.         # expect a Python AST
  5981.         exp = ast.parse(inp, mode=mode)
  5982.         # observe something from xonsh
  5983. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  5984. E       AttributeError: 'NoneType' object has no attribute 'parse'
  5985.  
  5986. tests/test_parser.py:62: AttributeError
  5987. ______________________________________________________________________ test_if_true[0] _______________________________________________________________________
  5988.  
  5989. inp = 'if True:\n  pass\n', run = True, mode = 'exec'
  5990.  
  5991.     def check_stmts(inp, run=True, mode='exec'):
  5992.         if not inp.endswith('\n'):
  5993.             inp += '\n'
  5994. >       check_ast(inp, run=run, mode=mode)
  5995.  
  5996. tests/test_parser.py:72:
  5997. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5998.  
  5999. inp = 'if True:\n  pass\n', run = True, mode = 'exec'
  6000.  
  6001.     def check_ast(inp, run=True, mode='eval'):
  6002.         # expect a Python AST
  6003.         exp = ast.parse(inp, mode=mode)
  6004.         # observe something from xonsh
  6005. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6006. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6007.  
  6008. tests/test_parser.py:62: AttributeError
  6009. __________________________________________________________________ test_if_true_twolines[0] __________________________________________________________________
  6010.  
  6011. inp = 'if True:\n  pass\n  pass\n', run = True, mode = 'exec'
  6012.  
  6013.     def check_stmts(inp, run=True, mode='exec'):
  6014.         if not inp.endswith('\n'):
  6015.             inp += '\n'
  6016. >       check_ast(inp, run=run, mode=mode)
  6017.  
  6018. tests/test_parser.py:72:
  6019. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6020.  
  6021. inp = 'if True:\n  pass\n  pass\n', run = True, mode = 'exec'
  6022.  
  6023.     def check_ast(inp, run=True, mode='eval'):
  6024.         # expect a Python AST
  6025.         exp = ast.parse(inp, mode=mode)
  6026.         # observe something from xonsh
  6027. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6028. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6029.  
  6030. tests/test_parser.py:62: AttributeError
  6031. _____________________________________________________________ test_if_true_twolines_deindent[0] ______________________________________________________________
  6032.  
  6033. inp = 'if True:\n  pass\n  pass\npass\n', run = True, mode = 'exec'
  6034.  
  6035.     def check_stmts(inp, run=True, mode='exec'):
  6036.         if not inp.endswith('\n'):
  6037.             inp += '\n'
  6038. >       check_ast(inp, run=run, mode=mode)
  6039.  
  6040. tests/test_parser.py:72:
  6041. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6042.  
  6043. inp = 'if True:\n  pass\n  pass\npass\n', run = True, mode = 'exec'
  6044.  
  6045.     def check_ast(inp, run=True, mode='eval'):
  6046.         # expect a Python AST
  6047.         exp = ast.parse(inp, mode=mode)
  6048.         # observe something from xonsh
  6049. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6050. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6051.  
  6052. tests/test_parser.py:62: AttributeError
  6053. ____________________________________________________________________ test_if_true_else[0] ____________________________________________________________________
  6054.  
  6055. inp = 'if True:\n  pass\nelse: \n  pass\n', run = True, mode = 'exec'
  6056.  
  6057.     def check_stmts(inp, run=True, mode='exec'):
  6058.         if not inp.endswith('\n'):
  6059.             inp += '\n'
  6060. >       check_ast(inp, run=run, mode=mode)
  6061.  
  6062. tests/test_parser.py:72:
  6063. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6064.  
  6065. inp = 'if True:\n  pass\nelse: \n  pass\n', run = True, mode = 'exec'
  6066.  
  6067.     def check_ast(inp, run=True, mode='eval'):
  6068.         # expect a Python AST
  6069.         exp = ast.parse(inp, mode=mode)
  6070.         # observe something from xonsh
  6071. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6072. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6073.  
  6074. tests/test_parser.py:62: AttributeError
  6075. _____________________________________________________________________ test_if_true_x[0] ______________________________________________________________________
  6076.  
  6077. inp = 'if True:\n  x = 42\n', run = True, mode = 'exec'
  6078.  
  6079.     def check_stmts(inp, run=True, mode='exec'):
  6080.         if not inp.endswith('\n'):
  6081.             inp += '\n'
  6082. >       check_ast(inp, run=run, mode=mode)
  6083.  
  6084. tests/test_parser.py:72:
  6085. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6086.  
  6087. inp = 'if True:\n  x = 42\n', run = True, mode = 'exec'
  6088.  
  6089.     def check_ast(inp, run=True, mode='eval'):
  6090.         # expect a Python AST
  6091.         exp = ast.parse(inp, mode=mode)
  6092.         # observe something from xonsh
  6093. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6094. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6095.  
  6096. tests/test_parser.py:62: AttributeError
  6097. _____________________________________________________________________ test_if_switch[0] ______________________________________________________________________
  6098.  
  6099. inp = 'x = 42\nif x == 1:\n  pass\n', run = True, mode = 'exec'
  6100.  
  6101.     def check_stmts(inp, run=True, mode='exec'):
  6102.         if not inp.endswith('\n'):
  6103.             inp += '\n'
  6104. >       check_ast(inp, run=run, mode=mode)
  6105.  
  6106. tests/test_parser.py:72:
  6107. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6108.  
  6109. inp = 'x = 42\nif x == 1:\n  pass\n', run = True, mode = 'exec'
  6110.  
  6111.     def check_ast(inp, run=True, mode='eval'):
  6112.         # expect a Python AST
  6113.         exp = ast.parse(inp, mode=mode)
  6114.         # observe something from xonsh
  6115. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6116. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6117.  
  6118. tests/test_parser.py:62: AttributeError
  6119. ________________________________________________________________ test_if_switch_elif1_else[0] ________________________________________________________________
  6120.  
  6121. inp = 'x = 42\nif x == 1:\n  pass\nelif x == 2:\n  pass\nelse:\n  pass\n', run = True, mode = 'exec'
  6122.  
  6123.     def check_stmts(inp, run=True, mode='exec'):
  6124.         if not inp.endswith('\n'):
  6125.             inp += '\n'
  6126. >       check_ast(inp, run=run, mode=mode)
  6127.  
  6128. tests/test_parser.py:72:
  6129. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6130.  
  6131. inp = 'x = 42\nif x == 1:\n  pass\nelif x == 2:\n  pass\nelse:\n  pass\n', run = True, mode = 'exec'
  6132.  
  6133.     def check_ast(inp, run=True, mode='eval'):
  6134.         # expect a Python AST
  6135.         exp = ast.parse(inp, mode=mode)
  6136.         # observe something from xonsh
  6137. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6138. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6139.  
  6140. tests/test_parser.py:62: AttributeError
  6141. ________________________________________________________________ test_if_switch_elif2_else[0] ________________________________________________________________
  6142.  
  6143. inp = 'x = 42\nif x == 1:\n  pass\nelif x == 2:\n  pass\nelif x == 3:\n  pass\nelif x == 4:\n  pass\nelse:\n  pass\n', run = True, mode = 'exec'
  6144.  
  6145.     def check_stmts(inp, run=True, mode='exec'):
  6146.         if not inp.endswith('\n'):
  6147.             inp += '\n'
  6148. >       check_ast(inp, run=run, mode=mode)
  6149.  
  6150. tests/test_parser.py:72:
  6151. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6152.  
  6153. inp = 'x = 42\nif x == 1:\n  pass\nelif x == 2:\n  pass\nelif x == 3:\n  pass\nelif x == 4:\n  pass\nelse:\n  pass\n', run = True, mode = 'exec'
  6154.  
  6155.     def check_ast(inp, run=True, mode='eval'):
  6156.         # expect a Python AST
  6157.         exp = ast.parse(inp, mode=mode)
  6158.         # observe something from xonsh
  6159. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6160. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6161.  
  6162. tests/test_parser.py:62: AttributeError
  6163. _____________________________________________________________________ test_if_nested[0] ______________________________________________________________________
  6164.  
  6165. inp = 'x = 42\nif x == 1:\n  pass\n  if x == 4:\n     pass\n', run = True, mode = 'exec'
  6166.  
  6167.     def check_stmts(inp, run=True, mode='exec'):
  6168.         if not inp.endswith('\n'):
  6169.             inp += '\n'
  6170. >       check_ast(inp, run=run, mode=mode)
  6171.  
  6172. tests/test_parser.py:72:
  6173. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6174.  
  6175. inp = 'x = 42\nif x == 1:\n  pass\n  if x == 4:\n     pass\n', run = True, mode = 'exec'
  6176.  
  6177.     def check_ast(inp, run=True, mode='eval'):
  6178.         # expect a Python AST
  6179.         exp = ast.parse(inp, mode=mode)
  6180.         # observe something from xonsh
  6181. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6182. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6183.  
  6184. tests/test_parser.py:62: AttributeError
  6185. _______________________________________________________________________ test_while[0] ________________________________________________________________________
  6186.  
  6187. inp = 'while False:\n  pass\n', run = True, mode = 'exec'
  6188.  
  6189.     def check_stmts(inp, run=True, mode='exec'):
  6190.         if not inp.endswith('\n'):
  6191.             inp += '\n'
  6192. >       check_ast(inp, run=run, mode=mode)
  6193.  
  6194. tests/test_parser.py:72:
  6195. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6196.  
  6197. inp = 'while False:\n  pass\n', run = True, mode = 'exec'
  6198.  
  6199.     def check_ast(inp, run=True, mode='eval'):
  6200.         # expect a Python AST
  6201.         exp = ast.parse(inp, mode=mode)
  6202.         # observe something from xonsh
  6203. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6204. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6205.  
  6206. tests/test_parser.py:62: AttributeError
  6207. _____________________________________________________________________ test_while_else[0] _____________________________________________________________________
  6208.  
  6209. inp = 'while False:\n  pass\nelse:\n  pass\n', run = True, mode = 'exec'
  6210.  
  6211.     def check_stmts(inp, run=True, mode='exec'):
  6212.         if not inp.endswith('\n'):
  6213.             inp += '\n'
  6214. >       check_ast(inp, run=run, mode=mode)
  6215.  
  6216. tests/test_parser.py:72:
  6217. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6218.  
  6219. inp = 'while False:\n  pass\nelse:\n  pass\n', run = True, mode = 'exec'
  6220.  
  6221.     def check_ast(inp, run=True, mode='eval'):
  6222.         # expect a Python AST
  6223.         exp = ast.parse(inp, mode=mode)
  6224.         # observe something from xonsh
  6225. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6226. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6227.  
  6228. tests/test_parser.py:62: AttributeError
  6229. ________________________________________________________________________ test_for[0] _________________________________________________________________________
  6230.  
  6231. inp = 'for x in range(6):\n  pass\n', run = True, mode = 'exec'
  6232.  
  6233.     def check_stmts(inp, run=True, mode='exec'):
  6234.         if not inp.endswith('\n'):
  6235.             inp += '\n'
  6236. >       check_ast(inp, run=run, mode=mode)
  6237.  
  6238. tests/test_parser.py:72:
  6239. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6240.  
  6241. inp = 'for x in range(6):\n  pass\n', run = True, mode = 'exec'
  6242.  
  6243.     def check_ast(inp, run=True, mode='eval'):
  6244.         # expect a Python AST
  6245.         exp = ast.parse(inp, mode=mode)
  6246.         # observe something from xonsh
  6247. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6248. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6249.  
  6250. tests/test_parser.py:62: AttributeError
  6251. ______________________________________________________________________ test_for_zip[0] _______________________________________________________________________
  6252.  
  6253. inp = 'for x, y in zip(range(6), "123456"):\n  pass\n', run = True, mode = 'exec'
  6254.  
  6255.     def check_stmts(inp, run=True, mode='exec'):
  6256.         if not inp.endswith('\n'):
  6257.             inp += '\n'
  6258. >       check_ast(inp, run=run, mode=mode)
  6259.  
  6260. tests/test_parser.py:72:
  6261. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6262.  
  6263. inp = 'for x, y in zip(range(6), "123456"):\n  pass\n', run = True, mode = 'exec'
  6264.  
  6265.     def check_ast(inp, run=True, mode='eval'):
  6266.         # expect a Python AST
  6267.         exp = ast.parse(inp, mode=mode)
  6268.         # observe something from xonsh
  6269. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6270. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6271.  
  6272. tests/test_parser.py:62: AttributeError
  6273. ______________________________________________________________________ test_for_idx[0] _______________________________________________________________________
  6274.  
  6275. inp = 'x = [42]\nfor x[0] in range(3):\n  pass\n', run = True, mode = 'exec'
  6276.  
  6277.     def check_stmts(inp, run=True, mode='exec'):
  6278.         if not inp.endswith('\n'):
  6279.             inp += '\n'
  6280. >       check_ast(inp, run=run, mode=mode)
  6281.  
  6282. tests/test_parser.py:72:
  6283. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6284.  
  6285. inp = 'x = [42]\nfor x[0] in range(3):\n  pass\n', run = True, mode = 'exec'
  6286.  
  6287.     def check_ast(inp, run=True, mode='eval'):
  6288.         # expect a Python AST
  6289.         exp = ast.parse(inp, mode=mode)
  6290.         # observe something from xonsh
  6291. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6292. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6293.  
  6294. tests/test_parser.py:62: AttributeError
  6295. ____________________________________________________________________ test_for_zip_idx[0] _____________________________________________________________________
  6296.  
  6297. inp = 'x = [42]\nfor x[0], y in zip(range(6), "123456"):\n  pass\n', run = True, mode = 'exec'
  6298.  
  6299.     def check_stmts(inp, run=True, mode='exec'):
  6300.         if not inp.endswith('\n'):
  6301.             inp += '\n'
  6302. >       check_ast(inp, run=run, mode=mode)
  6303.  
  6304. tests/test_parser.py:72:
  6305. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6306.  
  6307. inp = 'x = [42]\nfor x[0], y in zip(range(6), "123456"):\n  pass\n', run = True, mode = 'exec'
  6308.  
  6309.     def check_ast(inp, run=True, mode='eval'):
  6310.         # expect a Python AST
  6311.         exp = ast.parse(inp, mode=mode)
  6312.         # observe something from xonsh
  6313. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6314. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6315.  
  6316. tests/test_parser.py:62: AttributeError
  6317. ______________________________________________________________________ test_for_attr[0] ______________________________________________________________________
  6318.  
  6319. inp = 'for x.a in range(3):\n  pass\n', run = False, mode = 'exec'
  6320.  
  6321.     def check_stmts(inp, run=True, mode='exec'):
  6322.         if not inp.endswith('\n'):
  6323.             inp += '\n'
  6324. >       check_ast(inp, run=run, mode=mode)
  6325.  
  6326. tests/test_parser.py:72:
  6327. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6328.  
  6329. inp = 'for x.a in range(3):\n  pass\n', run = False, mode = 'exec'
  6330.  
  6331.     def check_ast(inp, run=True, mode='eval'):
  6332.         # expect a Python AST
  6333.         exp = ast.parse(inp, mode=mode)
  6334.         # observe something from xonsh
  6335. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6336. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6337.  
  6338. tests/test_parser.py:62: AttributeError
  6339. ____________________________________________________________________ test_for_zip_attr[0] ____________________________________________________________________
  6340.  
  6341. inp = 'for x.a, y in zip(range(6), "123456"):\n  pass\n', run = False, mode = 'exec'
  6342.  
  6343.     def check_stmts(inp, run=True, mode='exec'):
  6344.         if not inp.endswith('\n'):
  6345.             inp += '\n'
  6346. >       check_ast(inp, run=run, mode=mode)
  6347.  
  6348. tests/test_parser.py:72:
  6349. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6350.  
  6351. inp = 'for x.a, y in zip(range(6), "123456"):\n  pass\n', run = False, mode = 'exec'
  6352.  
  6353.     def check_ast(inp, run=True, mode='eval'):
  6354.         # expect a Python AST
  6355.         exp = ast.parse(inp, mode=mode)
  6356.         # observe something from xonsh
  6357. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6358. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6359.  
  6360. tests/test_parser.py:62: AttributeError
  6361. ______________________________________________________________________ test_for_else[0] ______________________________________________________________________
  6362.  
  6363. inp = 'for x in range(6):\n  pass\nelse:  pass\n', run = True, mode = 'exec'
  6364.  
  6365.     def check_stmts(inp, run=True, mode='exec'):
  6366.         if not inp.endswith('\n'):
  6367.             inp += '\n'
  6368. >       check_ast(inp, run=run, mode=mode)
  6369.  
  6370. tests/test_parser.py:72:
  6371. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6372.  
  6373. inp = 'for x in range(6):\n  pass\nelse:  pass\n', run = True, mode = 'exec'
  6374.  
  6375.     def check_ast(inp, run=True, mode='eval'):
  6376.         # expect a Python AST
  6377.         exp = ast.parse(inp, mode=mode)
  6378.         # observe something from xonsh
  6379. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6380. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6381.  
  6382. tests/test_parser.py:62: AttributeError
  6383. _____________________________________________________________________ test_async_for[0] ______________________________________________________________________
  6384.  
  6385. inp = 'async def f():\n    async for x in y:\n        pass\n', run = False, mode = 'exec'
  6386.  
  6387.     def check_stmts(inp, run=True, mode='exec'):
  6388.         if not inp.endswith('\n'):
  6389.             inp += '\n'
  6390. >       check_ast(inp, run=run, mode=mode)
  6391.  
  6392. tests/test_parser.py:72:
  6393. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6394.  
  6395. inp = 'async def f():\n    async for x in y:\n        pass\n', run = False, mode = 'exec'
  6396.  
  6397.     def check_ast(inp, run=True, mode='eval'):
  6398.         # expect a Python AST
  6399.         exp = ast.parse(inp, mode=mode)
  6400.         # observe something from xonsh
  6401. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6402. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6403.  
  6404. tests/test_parser.py:62: AttributeError
  6405. ________________________________________________________________________ test_with[0] ________________________________________________________________________
  6406.  
  6407. inp = 'with x:\n  pass\n', run = False, mode = 'exec'
  6408.  
  6409.     def check_stmts(inp, run=True, mode='exec'):
  6410.         if not inp.endswith('\n'):
  6411.             inp += '\n'
  6412. >       check_ast(inp, run=run, mode=mode)
  6413.  
  6414. tests/test_parser.py:72:
  6415. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6416.  
  6417. inp = 'with x:\n  pass\n', run = False, mode = 'exec'
  6418.  
  6419.     def check_ast(inp, run=True, mode='eval'):
  6420.         # expect a Python AST
  6421.         exp = ast.parse(inp, mode=mode)
  6422.         # observe something from xonsh
  6423. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6424. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6425.  
  6426. tests/test_parser.py:62: AttributeError
  6427. ______________________________________________________________________ test_with_as[0] _______________________________________________________________________
  6428.  
  6429. inp = 'with x as y:\n  pass\n', run = False, mode = 'exec'
  6430.  
  6431.     def check_stmts(inp, run=True, mode='exec'):
  6432.         if not inp.endswith('\n'):
  6433.             inp += '\n'
  6434. >       check_ast(inp, run=run, mode=mode)
  6435.  
  6436. tests/test_parser.py:72:
  6437. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6438.  
  6439. inp = 'with x as y:\n  pass\n', run = False, mode = 'exec'
  6440.  
  6441.     def check_ast(inp, run=True, mode='eval'):
  6442.         # expect a Python AST
  6443.         exp = ast.parse(inp, mode=mode)
  6444.         # observe something from xonsh
  6445. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6446. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6447.  
  6448. tests/test_parser.py:62: AttributeError
  6449. ______________________________________________________________________ test_with_xy[0] _______________________________________________________________________
  6450.  
  6451. inp = 'with x, y:\n  pass\n', run = False, mode = 'exec'
  6452.  
  6453.     def check_stmts(inp, run=True, mode='exec'):
  6454.         if not inp.endswith('\n'):
  6455.             inp += '\n'
  6456. >       check_ast(inp, run=run, mode=mode)
  6457.  
  6458. tests/test_parser.py:72:
  6459. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6460.  
  6461. inp = 'with x, y:\n  pass\n', run = False, mode = 'exec'
  6462.  
  6463.     def check_ast(inp, run=True, mode='eval'):
  6464.         # expect a Python AST
  6465.         exp = ast.parse(inp, mode=mode)
  6466.         # observe something from xonsh
  6467. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6468. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6469.  
  6470. tests/test_parser.py:62: AttributeError
  6471. ___________________________________________________________________ test_with_x_as_y_z[0] ____________________________________________________________________
  6472.  
  6473. inp = 'with x as y, z:\n  pass\n', run = False, mode = 'exec'
  6474.  
  6475.     def check_stmts(inp, run=True, mode='exec'):
  6476.         if not inp.endswith('\n'):
  6477.             inp += '\n'
  6478. >       check_ast(inp, run=run, mode=mode)
  6479.  
  6480. tests/test_parser.py:72:
  6481. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6482.  
  6483. inp = 'with x as y, z:\n  pass\n', run = False, mode = 'exec'
  6484.  
  6485.     def check_ast(inp, run=True, mode='eval'):
  6486.         # expect a Python AST
  6487.         exp = ast.parse(inp, mode=mode)
  6488.         # observe something from xonsh
  6489. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6490. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6491.  
  6492. tests/test_parser.py:62: AttributeError
  6493. _________________________________________________________________ test_with_x_as_y_a_as_b[0] _________________________________________________________________
  6494.  
  6495. inp = 'with x as y, a as b:\n  pass\n', run = False, mode = 'exec'
  6496.  
  6497.     def check_stmts(inp, run=True, mode='exec'):
  6498.         if not inp.endswith('\n'):
  6499.             inp += '\n'
  6500. >       check_ast(inp, run=run, mode=mode)
  6501.  
  6502. tests/test_parser.py:72:
  6503. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6504.  
  6505. inp = 'with x as y, a as b:\n  pass\n', run = False, mode = 'exec'
  6506.  
  6507.     def check_ast(inp, run=True, mode='eval'):
  6508.         # expect a Python AST
  6509.         exp = ast.parse(inp, mode=mode)
  6510.         # observe something from xonsh
  6511. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6512. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6513.  
  6514. tests/test_parser.py:62: AttributeError
  6515. _____________________________________________________________________ test_async_with[0] _____________________________________________________________________
  6516.  
  6517. inp = 'async def f():\n    async with x as y:\n        pass\n', run = False, mode = 'exec'
  6518.  
  6519.     def check_stmts(inp, run=True, mode='exec'):
  6520.         if not inp.endswith('\n'):
  6521.             inp += '\n'
  6522. >       check_ast(inp, run=run, mode=mode)
  6523.  
  6524. tests/test_parser.py:72:
  6525. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6526.  
  6527. inp = 'async def f():\n    async with x as y:\n        pass\n', run = False, mode = 'exec'
  6528.  
  6529.     def check_ast(inp, run=True, mode='eval'):
  6530.         # expect a Python AST
  6531.         exp = ast.parse(inp, mode=mode)
  6532.         # observe something from xonsh
  6533. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6534. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6535.  
  6536. tests/test_parser.py:62: AttributeError
  6537. ________________________________________________________________________ test_try[0] _________________________________________________________________________
  6538.  
  6539. inp = 'try:\n  pass\nexcept:\n  pass\n', run = False, mode = 'exec'
  6540.  
  6541.     def check_stmts(inp, run=True, mode='exec'):
  6542.         if not inp.endswith('\n'):
  6543.             inp += '\n'
  6544. >       check_ast(inp, run=run, mode=mode)
  6545.  
  6546. tests/test_parser.py:72:
  6547. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6548.  
  6549. inp = 'try:\n  pass\nexcept:\n  pass\n', run = False, mode = 'exec'
  6550.  
  6551.     def check_ast(inp, run=True, mode='eval'):
  6552.         # expect a Python AST
  6553.         exp = ast.parse(inp, mode=mode)
  6554.         # observe something from xonsh
  6555. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6556. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6557.  
  6558. tests/test_parser.py:62: AttributeError
  6559. ____________________________________________________________________ test_try_except_t[0] ____________________________________________________________________
  6560.  
  6561. inp = 'try:\n  pass\nexcept TypeError:\n  pass\n', run = False, mode = 'exec'
  6562.  
  6563.     def check_stmts(inp, run=True, mode='exec'):
  6564.         if not inp.endswith('\n'):
  6565.             inp += '\n'
  6566. >       check_ast(inp, run=run, mode=mode)
  6567.  
  6568. tests/test_parser.py:72:
  6569. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6570.  
  6571. inp = 'try:\n  pass\nexcept TypeError:\n  pass\n', run = False, mode = 'exec'
  6572.  
  6573.     def check_ast(inp, run=True, mode='eval'):
  6574.         # expect a Python AST
  6575.         exp = ast.parse(inp, mode=mode)
  6576.         # observe something from xonsh
  6577. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6578. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6579.  
  6580. tests/test_parser.py:62: AttributeError
  6581. _________________________________________________________________ test_try_except_t_as_e[0] __________________________________________________________________
  6582.  
  6583. inp = 'try:\n  pass\nexcept TypeError as e:\n  pass\n', run = False, mode = 'exec'
  6584.  
  6585.     def check_stmts(inp, run=True, mode='exec'):
  6586.         if not inp.endswith('\n'):
  6587.             inp += '\n'
  6588. >       check_ast(inp, run=run, mode=mode)
  6589.  
  6590. tests/test_parser.py:72:
  6591. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6592.  
  6593. inp = 'try:\n  pass\nexcept TypeError as e:\n  pass\n', run = False, mode = 'exec'
  6594.  
  6595.     def check_ast(inp, run=True, mode='eval'):
  6596.         # expect a Python AST
  6597.         exp = ast.parse(inp, mode=mode)
  6598.         # observe something from xonsh
  6599. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6600. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6601.  
  6602. tests/test_parser.py:62: AttributeError
  6603. ___________________________________________________________________ test_try_except_t_u[0] ___________________________________________________________________
  6604.  
  6605. inp = 'try:\n  pass\nexcept (TypeError, SyntaxError):\n  pass\n', run = False, mode = 'exec'
  6606.  
  6607.     def check_stmts(inp, run=True, mode='exec'):
  6608.         if not inp.endswith('\n'):
  6609.             inp += '\n'
  6610. >       check_ast(inp, run=run, mode=mode)
  6611.  
  6612. tests/test_parser.py:72:
  6613. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6614.  
  6615. inp = 'try:\n  pass\nexcept (TypeError, SyntaxError):\n  pass\n', run = False, mode = 'exec'
  6616.  
  6617.     def check_ast(inp, run=True, mode='eval'):
  6618.         # expect a Python AST
  6619.         exp = ast.parse(inp, mode=mode)
  6620.         # observe something from xonsh
  6621. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6622. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6623.  
  6624. tests/test_parser.py:62: AttributeError
  6625. ________________________________________________________________ test_try_except_t_u_as_e[0] _________________________________________________________________
  6626.  
  6627. inp = 'try:\n  pass\nexcept (TypeError, SyntaxError) as e:\n  pass\n', run = False, mode = 'exec'
  6628.  
  6629.     def check_stmts(inp, run=True, mode='exec'):
  6630.         if not inp.endswith('\n'):
  6631.             inp += '\n'
  6632. >       check_ast(inp, run=run, mode=mode)
  6633.  
  6634. tests/test_parser.py:72:
  6635. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6636.  
  6637. inp = 'try:\n  pass\nexcept (TypeError, SyntaxError) as e:\n  pass\n', run = False, mode = 'exec'
  6638.  
  6639.     def check_ast(inp, run=True, mode='eval'):
  6640.         # expect a Python AST
  6641.         exp = ast.parse(inp, mode=mode)
  6642.         # observe something from xonsh
  6643. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6644. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6645.  
  6646. tests/test_parser.py:62: AttributeError
  6647. _______________________________________________________________ test_try_except_t_except_u[0] ________________________________________________________________
  6648.  
  6649. inp = 'try:\n  pass\nexcept TypeError:\n  pass\nexcept SyntaxError as f:\n  pass\n', run = False, mode = 'exec'
  6650.  
  6651.     def check_stmts(inp, run=True, mode='exec'):
  6652.         if not inp.endswith('\n'):
  6653.             inp += '\n'
  6654. >       check_ast(inp, run=run, mode=mode)
  6655.  
  6656. tests/test_parser.py:72:
  6657. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6658.  
  6659. inp = 'try:\n  pass\nexcept TypeError:\n  pass\nexcept SyntaxError as f:\n  pass\n', run = False, mode = 'exec'
  6660.  
  6661.     def check_ast(inp, run=True, mode='eval'):
  6662.         # expect a Python AST
  6663.         exp = ast.parse(inp, mode=mode)
  6664.         # observe something from xonsh
  6665. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6666. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6667.  
  6668. tests/test_parser.py:62: AttributeError
  6669. __________________________________________________________________ test_try_except_else[0] ___________________________________________________________________
  6670.  
  6671. inp = 'try:\n  pass\nexcept:\n  pass\nelse:  pass\n', run = False, mode = 'exec'
  6672.  
  6673.     def check_stmts(inp, run=True, mode='exec'):
  6674.         if not inp.endswith('\n'):
  6675.             inp += '\n'
  6676. >       check_ast(inp, run=run, mode=mode)
  6677.  
  6678. tests/test_parser.py:72:
  6679. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6680.  
  6681. inp = 'try:\n  pass\nexcept:\n  pass\nelse:  pass\n', run = False, mode = 'exec'
  6682.  
  6683.     def check_ast(inp, run=True, mode='eval'):
  6684.         # expect a Python AST
  6685.         exp = ast.parse(inp, mode=mode)
  6686.         # observe something from xonsh
  6687. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6688. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6689.  
  6690. tests/test_parser.py:62: AttributeError
  6691. _________________________________________________________________ test_try_except_finally[0] _________________________________________________________________
  6692.  
  6693. inp = 'try:\n  pass\nexcept:\n  pass\nfinally:  pass\n', run = False, mode = 'exec'
  6694.  
  6695.     def check_stmts(inp, run=True, mode='exec'):
  6696.         if not inp.endswith('\n'):
  6697.             inp += '\n'
  6698. >       check_ast(inp, run=run, mode=mode)
  6699.  
  6700. tests/test_parser.py:72:
  6701. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6702.  
  6703. inp = 'try:\n  pass\nexcept:\n  pass\nfinally:  pass\n', run = False, mode = 'exec'
  6704.  
  6705.     def check_ast(inp, run=True, mode='eval'):
  6706.         # expect a Python AST
  6707.         exp = ast.parse(inp, mode=mode)
  6708.         # observe something from xonsh
  6709. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6710. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6711.  
  6712. tests/test_parser.py:62: AttributeError
  6713. ______________________________________________________________ test_try_except_else_finally[0] _______________________________________________________________
  6714.  
  6715. inp = 'try:\n  pass\nexcept:\n  pass\nelse:\n  pass\nfinally:  pass\n', run = False, mode = 'exec'
  6716.  
  6717.     def check_stmts(inp, run=True, mode='exec'):
  6718.         if not inp.endswith('\n'):
  6719.             inp += '\n'
  6720. >       check_ast(inp, run=run, mode=mode)
  6721.  
  6722. tests/test_parser.py:72:
  6723. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6724.  
  6725. inp = 'try:\n  pass\nexcept:\n  pass\nelse:\n  pass\nfinally:  pass\n', run = False, mode = 'exec'
  6726.  
  6727.     def check_ast(inp, run=True, mode='eval'):
  6728.         # expect a Python AST
  6729.         exp = ast.parse(inp, mode=mode)
  6730.         # observe something from xonsh
  6731. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6732. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6733.  
  6734. tests/test_parser.py:62: AttributeError
  6735. ____________________________________________________________________ test_try_finally[0] _____________________________________________________________________
  6736.  
  6737. inp = 'try:\n  pass\nfinally:  pass\n', run = False, mode = 'exec'
  6738.  
  6739.     def check_stmts(inp, run=True, mode='exec'):
  6740.         if not inp.endswith('\n'):
  6741.             inp += '\n'
  6742. >       check_ast(inp, run=run, mode=mode)
  6743.  
  6744. tests/test_parser.py:72:
  6745. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6746.  
  6747. inp = 'try:\n  pass\nfinally:  pass\n', run = False, mode = 'exec'
  6748.  
  6749.     def check_ast(inp, run=True, mode='eval'):
  6750.         # expect a Python AST
  6751.         exp = ast.parse(inp, mode=mode)
  6752.         # observe something from xonsh
  6753. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6754. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6755.  
  6756. tests/test_parser.py:62: AttributeError
  6757. ________________________________________________________________________ test_func[0] ________________________________________________________________________
  6758.  
  6759. inp = 'def f():\n  pass\n', run = True, mode = 'exec'
  6760.  
  6761.     def check_stmts(inp, run=True, mode='exec'):
  6762.         if not inp.endswith('\n'):
  6763.             inp += '\n'
  6764. >       check_ast(inp, run=run, mode=mode)
  6765.  
  6766. tests/test_parser.py:72:
  6767. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6768.  
  6769. inp = 'def f():\n  pass\n', run = True, mode = 'exec'
  6770.  
  6771.     def check_ast(inp, run=True, mode='eval'):
  6772.         # expect a Python AST
  6773.         exp = ast.parse(inp, mode=mode)
  6774.         # observe something from xonsh
  6775. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6776. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6777.  
  6778. tests/test_parser.py:62: AttributeError
  6779. ______________________________________________________________________ test_func_ret[0] ______________________________________________________________________
  6780.  
  6781. inp = 'def f():\n  return\n', run = True, mode = 'exec'
  6782.  
  6783.     def check_stmts(inp, run=True, mode='exec'):
  6784.         if not inp.endswith('\n'):
  6785.             inp += '\n'
  6786. >       check_ast(inp, run=run, mode=mode)
  6787.  
  6788. tests/test_parser.py:72:
  6789. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6790.  
  6791. inp = 'def f():\n  return\n', run = True, mode = 'exec'
  6792.  
  6793.     def check_ast(inp, run=True, mode='eval'):
  6794.         # expect a Python AST
  6795.         exp = ast.parse(inp, mode=mode)
  6796.         # observe something from xonsh
  6797. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6798. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6799.  
  6800. tests/test_parser.py:62: AttributeError
  6801. ____________________________________________________________________ test_func_ret_42[0] _____________________________________________________________________
  6802.  
  6803. inp = 'def f():\n  return 42\n', run = True, mode = 'exec'
  6804.  
  6805.     def check_stmts(inp, run=True, mode='exec'):
  6806.         if not inp.endswith('\n'):
  6807.             inp += '\n'
  6808. >       check_ast(inp, run=run, mode=mode)
  6809.  
  6810. tests/test_parser.py:72:
  6811. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6812.  
  6813. inp = 'def f():\n  return 42\n', run = True, mode = 'exec'
  6814.  
  6815.     def check_ast(inp, run=True, mode='eval'):
  6816.         # expect a Python AST
  6817.         exp = ast.parse(inp, mode=mode)
  6818.         # observe something from xonsh
  6819. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6820. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6821.  
  6822. tests/test_parser.py:62: AttributeError
  6823. ___________________________________________________________________ test_func_ret_42_65[0] ___________________________________________________________________
  6824.  
  6825. inp = 'def f():\n  return 42, 65\n', run = True, mode = 'exec'
  6826.  
  6827.     def check_stmts(inp, run=True, mode='exec'):
  6828.         if not inp.endswith('\n'):
  6829.             inp += '\n'
  6830. >       check_ast(inp, run=run, mode=mode)
  6831.  
  6832. tests/test_parser.py:72:
  6833. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6834.  
  6835. inp = 'def f():\n  return 42, 65\n', run = True, mode = 'exec'
  6836.  
  6837.     def check_ast(inp, run=True, mode='eval'):
  6838.         # expect a Python AST
  6839.         exp = ast.parse(inp, mode=mode)
  6840.         # observe something from xonsh
  6841. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6842. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6843.  
  6844. tests/test_parser.py:62: AttributeError
  6845. ____________________________________________________________________ test_func_rarrow[0] _____________________________________________________________________
  6846.  
  6847. inp = 'def f() -> int:\n  pass\n', run = True, mode = 'exec'
  6848.  
  6849.     def check_stmts(inp, run=True, mode='exec'):
  6850.         if not inp.endswith('\n'):
  6851.             inp += '\n'
  6852. >       check_ast(inp, run=run, mode=mode)
  6853.  
  6854. tests/test_parser.py:72:
  6855. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6856.  
  6857. inp = 'def f() -> int:\n  pass\n', run = True, mode = 'exec'
  6858.  
  6859.     def check_ast(inp, run=True, mode='eval'):
  6860.         # expect a Python AST
  6861.         exp = ast.parse(inp, mode=mode)
  6862.         # observe something from xonsh
  6863. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6864. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6865.  
  6866. tests/test_parser.py:62: AttributeError
  6867. _______________________________________________________________________ test_func_x[0] _______________________________________________________________________
  6868.  
  6869. inp = 'def f(x):\n  return x\n', run = True, mode = 'exec'
  6870.  
  6871.     def check_stmts(inp, run=True, mode='exec'):
  6872.         if not inp.endswith('\n'):
  6873.             inp += '\n'
  6874. >       check_ast(inp, run=run, mode=mode)
  6875.  
  6876. tests/test_parser.py:72:
  6877. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6878.  
  6879. inp = 'def f(x):\n  return x\n', run = True, mode = 'exec'
  6880.  
  6881.     def check_ast(inp, run=True, mode='eval'):
  6882.         # expect a Python AST
  6883.         exp = ast.parse(inp, mode=mode)
  6884.         # observe something from xonsh
  6885. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6886. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6887.  
  6888. tests/test_parser.py:62: AttributeError
  6889. ______________________________________________________________________ test_func_kwx[0] ______________________________________________________________________
  6890.  
  6891. inp = 'def f(x=42):\n  return x\n', run = True, mode = 'exec'
  6892.  
  6893.     def check_stmts(inp, run=True, mode='exec'):
  6894.         if not inp.endswith('\n'):
  6895.             inp += '\n'
  6896. >       check_ast(inp, run=run, mode=mode)
  6897.  
  6898. tests/test_parser.py:72:
  6899. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6900.  
  6901. inp = 'def f(x=42):\n  return x\n', run = True, mode = 'exec'
  6902.  
  6903.     def check_ast(inp, run=True, mode='eval'):
  6904.         # expect a Python AST
  6905.         exp = ast.parse(inp, mode=mode)
  6906.         # observe something from xonsh
  6907. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6908. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6909.  
  6910. tests/test_parser.py:62: AttributeError
  6911. ______________________________________________________________________ test_func_x_y[0] ______________________________________________________________________
  6912.  
  6913. inp = 'def f(x, y):\n  return x\n', run = True, mode = 'exec'
  6914.  
  6915.     def check_stmts(inp, run=True, mode='exec'):
  6916.         if not inp.endswith('\n'):
  6917.             inp += '\n'
  6918. >       check_ast(inp, run=run, mode=mode)
  6919.  
  6920. tests/test_parser.py:72:
  6921. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6922.  
  6923. inp = 'def f(x, y):\n  return x\n', run = True, mode = 'exec'
  6924.  
  6925.     def check_ast(inp, run=True, mode='eval'):
  6926.         # expect a Python AST
  6927.         exp = ast.parse(inp, mode=mode)
  6928.         # observe something from xonsh
  6929. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6930. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6931.  
  6932. tests/test_parser.py:62: AttributeError
  6933. _____________________________________________________________________ test_func_x_y_z[0] _____________________________________________________________________
  6934.  
  6935. inp = 'def f(x, y, z):\n  return x\n', run = True, mode = 'exec'
  6936.  
  6937.     def check_stmts(inp, run=True, mode='exec'):
  6938.         if not inp.endswith('\n'):
  6939.             inp += '\n'
  6940. >       check_ast(inp, run=run, mode=mode)
  6941.  
  6942. tests/test_parser.py:72:
  6943. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6944.  
  6945. inp = 'def f(x, y, z):\n  return x\n', run = True, mode = 'exec'
  6946.  
  6947.     def check_ast(inp, run=True, mode='eval'):
  6948.         # expect a Python AST
  6949.         exp = ast.parse(inp, mode=mode)
  6950.         # observe something from xonsh
  6951. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6952. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6953.  
  6954. tests/test_parser.py:62: AttributeError
  6955. _____________________________________________________________________ test_func_x_kwy[0] _____________________________________________________________________
  6956.  
  6957. inp = 'def f(x, y=42):\n  return x\n', run = True, mode = 'exec'
  6958.  
  6959.     def check_stmts(inp, run=True, mode='exec'):
  6960.         if not inp.endswith('\n'):
  6961.             inp += '\n'
  6962. >       check_ast(inp, run=run, mode=mode)
  6963.  
  6964. tests/test_parser.py:72:
  6965. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6966.  
  6967. inp = 'def f(x, y=42):\n  return x\n', run = True, mode = 'exec'
  6968.  
  6969.     def check_ast(inp, run=True, mode='eval'):
  6970.         # expect a Python AST
  6971.         exp = ast.parse(inp, mode=mode)
  6972.         # observe something from xonsh
  6973. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6974. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6975.  
  6976. tests/test_parser.py:62: AttributeError
  6977. ____________________________________________________________________ test_func_kwx_kwy[0] ____________________________________________________________________
  6978.  
  6979. inp = 'def f(x=65, y=42):\n  return x\n', run = True, mode = 'exec'
  6980.  
  6981.     def check_stmts(inp, run=True, mode='exec'):
  6982.         if not inp.endswith('\n'):
  6983.             inp += '\n'
  6984. >       check_ast(inp, run=run, mode=mode)
  6985.  
  6986. tests/test_parser.py:72:
  6987. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6988.  
  6989. inp = 'def f(x=65, y=42):\n  return x\n', run = True, mode = 'exec'
  6990.  
  6991.     def check_ast(inp, run=True, mode='eval'):
  6992.         # expect a Python AST
  6993.         exp = ast.parse(inp, mode=mode)
  6994.         # observe something from xonsh
  6995. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  6996. E       AttributeError: 'NoneType' object has no attribute 'parse'
  6997.  
  6998. tests/test_parser.py:62: AttributeError
  6999. __________________________________________________________________ test_func_kwx_kwy_kwz[0] __________________________________________________________________
  7000.  
  7001. inp = 'def f(x=65, y=42, z=1):\n  return x\n', run = True, mode = 'exec'
  7002.  
  7003.     def check_stmts(inp, run=True, mode='exec'):
  7004.         if not inp.endswith('\n'):
  7005.             inp += '\n'
  7006. >       check_ast(inp, run=run, mode=mode)
  7007.  
  7008. tests/test_parser.py:72:
  7009. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7010.  
  7011. inp = 'def f(x=65, y=42, z=1):\n  return x\n', run = True, mode = 'exec'
  7012.  
  7013.     def check_ast(inp, run=True, mode='eval'):
  7014.         # expect a Python AST
  7015.         exp = ast.parse(inp, mode=mode)
  7016.         # observe something from xonsh
  7017. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7018. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7019.  
  7020. tests/test_parser.py:62: AttributeError
  7021. ____________________________________________________________________ test_func_x_comma[0] ____________________________________________________________________
  7022.  
  7023. inp = 'def f(x,):\n  return x\n', run = True, mode = 'exec'
  7024.  
  7025.     def check_stmts(inp, run=True, mode='exec'):
  7026.         if not inp.endswith('\n'):
  7027.             inp += '\n'
  7028. >       check_ast(inp, run=run, mode=mode)
  7029.  
  7030. tests/test_parser.py:72:
  7031. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7032.  
  7033. inp = 'def f(x,):\n  return x\n', run = True, mode = 'exec'
  7034.  
  7035.     def check_ast(inp, run=True, mode='eval'):
  7036.         # expect a Python AST
  7037.         exp = ast.parse(inp, mode=mode)
  7038.         # observe something from xonsh
  7039. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7040. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7041.  
  7042. tests/test_parser.py:62: AttributeError
  7043. ___________________________________________________________________ test_func_x_y_comma[0] ___________________________________________________________________
  7044.  
  7045. inp = 'def f(x, y,):\n  return x\n', run = True, mode = 'exec'
  7046.  
  7047.     def check_stmts(inp, run=True, mode='exec'):
  7048.         if not inp.endswith('\n'):
  7049.             inp += '\n'
  7050. >       check_ast(inp, run=run, mode=mode)
  7051.  
  7052. tests/test_parser.py:72:
  7053. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7054.  
  7055. inp = 'def f(x, y,):\n  return x\n', run = True, mode = 'exec'
  7056.  
  7057.     def check_ast(inp, run=True, mode='eval'):
  7058.         # expect a Python AST
  7059.         exp = ast.parse(inp, mode=mode)
  7060.         # observe something from xonsh
  7061. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7062. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7063.  
  7064. tests/test_parser.py:62: AttributeError
  7065. __________________________________________________________________ test_func_x_y_z_comma[0] __________________________________________________________________
  7066.  
  7067. inp = 'def f(x, y, z,):\n  return x\n', run = True, mode = 'exec'
  7068.  
  7069.     def check_stmts(inp, run=True, mode='exec'):
  7070.         if not inp.endswith('\n'):
  7071.             inp += '\n'
  7072. >       check_ast(inp, run=run, mode=mode)
  7073.  
  7074. tests/test_parser.py:72:
  7075. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7076.  
  7077. inp = 'def f(x, y, z,):\n  return x\n', run = True, mode = 'exec'
  7078.  
  7079.     def check_ast(inp, run=True, mode='eval'):
  7080.         # expect a Python AST
  7081.         exp = ast.parse(inp, mode=mode)
  7082.         # observe something from xonsh
  7083. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7084. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7085.  
  7086. tests/test_parser.py:62: AttributeError
  7087. __________________________________________________________________ test_func_x_kwy_comma[0] __________________________________________________________________
  7088.  
  7089. inp = 'def f(x, y=42,):\n  return x\n', run = True, mode = 'exec'
  7090.  
  7091.     def check_stmts(inp, run=True, mode='exec'):
  7092.         if not inp.endswith('\n'):
  7093.             inp += '\n'
  7094. >       check_ast(inp, run=run, mode=mode)
  7095.  
  7096. tests/test_parser.py:72:
  7097. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7098.  
  7099. inp = 'def f(x, y=42,):\n  return x\n', run = True, mode = 'exec'
  7100.  
  7101.     def check_ast(inp, run=True, mode='eval'):
  7102.         # expect a Python AST
  7103.         exp = ast.parse(inp, mode=mode)
  7104.         # observe something from xonsh
  7105. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7106. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7107.  
  7108. tests/test_parser.py:62: AttributeError
  7109. _________________________________________________________________ test_func_kwx_kwy_comma[0] _________________________________________________________________
  7110.  
  7111. inp = 'def f(x=65, y=42,):\n  return x\n', run = True, mode = 'exec'
  7112.  
  7113.     def check_stmts(inp, run=True, mode='exec'):
  7114.         if not inp.endswith('\n'):
  7115.             inp += '\n'
  7116. >       check_ast(inp, run=run, mode=mode)
  7117.  
  7118. tests/test_parser.py:72:
  7119. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7120.  
  7121. inp = 'def f(x=65, y=42,):\n  return x\n', run = True, mode = 'exec'
  7122.  
  7123.     def check_ast(inp, run=True, mode='eval'):
  7124.         # expect a Python AST
  7125.         exp = ast.parse(inp, mode=mode)
  7126.         # observe something from xonsh
  7127. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7128. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7129.  
  7130. tests/test_parser.py:62: AttributeError
  7131. _______________________________________________________________ test_func_kwx_kwy_kwz_comma[0] _______________________________________________________________
  7132.  
  7133. inp = 'def f(x=65, y=42, z=1,):\n  return x\n', run = True, mode = 'exec'
  7134.  
  7135.     def check_stmts(inp, run=True, mode='exec'):
  7136.         if not inp.endswith('\n'):
  7137.             inp += '\n'
  7138. >       check_ast(inp, run=run, mode=mode)
  7139.  
  7140. tests/test_parser.py:72:
  7141. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7142.  
  7143. inp = 'def f(x=65, y=42, z=1,):\n  return x\n', run = True, mode = 'exec'
  7144.  
  7145.     def check_ast(inp, run=True, mode='eval'):
  7146.         # expect a Python AST
  7147.         exp = ast.parse(inp, mode=mode)
  7148.         # observe something from xonsh
  7149. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7150. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7151.  
  7152. tests/test_parser.py:62: AttributeError
  7153. _____________________________________________________________________ test_func_args[0] ______________________________________________________________________
  7154.  
  7155. inp = 'def f(*args):\n  return 42\n', run = True, mode = 'exec'
  7156.  
  7157.     def check_stmts(inp, run=True, mode='exec'):
  7158.         if not inp.endswith('\n'):
  7159.             inp += '\n'
  7160. >       check_ast(inp, run=run, mode=mode)
  7161.  
  7162. tests/test_parser.py:72:
  7163. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7164.  
  7165. inp = 'def f(*args):\n  return 42\n', run = True, mode = 'exec'
  7166.  
  7167.     def check_ast(inp, run=True, mode='eval'):
  7168.         # expect a Python AST
  7169.         exp = ast.parse(inp, mode=mode)
  7170.         # observe something from xonsh
  7171. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7172. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7173.  
  7174. tests/test_parser.py:62: AttributeError
  7175. ____________________________________________________________________ test_func_args_x[0] _____________________________________________________________________
  7176.  
  7177. inp = 'def f(*args, x):\n  return 42\n', run = True, mode = 'exec'
  7178.  
  7179.     def check_stmts(inp, run=True, mode='exec'):
  7180.         if not inp.endswith('\n'):
  7181.             inp += '\n'
  7182. >       check_ast(inp, run=run, mode=mode)
  7183.  
  7184. tests/test_parser.py:72:
  7185. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7186.  
  7187. inp = 'def f(*args, x):\n  return 42\n', run = True, mode = 'exec'
  7188.  
  7189.     def check_ast(inp, run=True, mode='eval'):
  7190.         # expect a Python AST
  7191.         exp = ast.parse(inp, mode=mode)
  7192.         # observe something from xonsh
  7193. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7194. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7195.  
  7196. tests/test_parser.py:62: AttributeError
  7197. ___________________________________________________________________ test_func_args_x_y[0] ____________________________________________________________________
  7198.  
  7199. inp = 'def f(*args, x, y):\n  return 42\n', run = True, mode = 'exec'
  7200.  
  7201.     def check_stmts(inp, run=True, mode='exec'):
  7202.         if not inp.endswith('\n'):
  7203.             inp += '\n'
  7204. >       check_ast(inp, run=run, mode=mode)
  7205.  
  7206. tests/test_parser.py:72:
  7207. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7208.  
  7209. inp = 'def f(*args, x, y):\n  return 42\n', run = True, mode = 'exec'
  7210.  
  7211.     def check_ast(inp, run=True, mode='eval'):
  7212.         # expect a Python AST
  7213.         exp = ast.parse(inp, mode=mode)
  7214.         # observe something from xonsh
  7215. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7216. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7217.  
  7218. tests/test_parser.py:62: AttributeError
  7219. __________________________________________________________________ test_func_args_x_kwy[0] ___________________________________________________________________
  7220.  
  7221. inp = 'def f(*args, x, y=10):\n  return 42\n', run = True, mode = 'exec'
  7222.  
  7223.     def check_stmts(inp, run=True, mode='exec'):
  7224.         if not inp.endswith('\n'):
  7225.             inp += '\n'
  7226. >       check_ast(inp, run=run, mode=mode)
  7227.  
  7228. tests/test_parser.py:72:
  7229. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7230.  
  7231. inp = 'def f(*args, x, y=10):\n  return 42\n', run = True, mode = 'exec'
  7232.  
  7233.     def check_ast(inp, run=True, mode='eval'):
  7234.         # expect a Python AST
  7235.         exp = ast.parse(inp, mode=mode)
  7236.         # observe something from xonsh
  7237. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7238. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7239.  
  7240. tests/test_parser.py:62: AttributeError
  7241. __________________________________________________________________ test_func_args_kwx_y[0] ___________________________________________________________________
  7242.  
  7243. inp = 'def f(*args, x=10, y):\n  return 42\n', run = True, mode = 'exec'
  7244.  
  7245.     def check_stmts(inp, run=True, mode='exec'):
  7246.         if not inp.endswith('\n'):
  7247.             inp += '\n'
  7248. >       check_ast(inp, run=run, mode=mode)
  7249.  
  7250. tests/test_parser.py:72:
  7251. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7252.  
  7253. inp = 'def f(*args, x=10, y):\n  return 42\n', run = True, mode = 'exec'
  7254.  
  7255.     def check_ast(inp, run=True, mode='eval'):
  7256.         # expect a Python AST
  7257.         exp = ast.parse(inp, mode=mode)
  7258.         # observe something from xonsh
  7259. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7260. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7261.  
  7262. tests/test_parser.py:62: AttributeError
  7263. _________________________________________________________________ test_func_args_kwx_kwy[0] __________________________________________________________________
  7264.  
  7265. inp = 'def f(*args, x=42, y=65):\n  return 42\n', run = True, mode = 'exec'
  7266.  
  7267.     def check_stmts(inp, run=True, mode='exec'):
  7268.         if not inp.endswith('\n'):
  7269.             inp += '\n'
  7270. >       check_ast(inp, run=run, mode=mode)
  7271.  
  7272. tests/test_parser.py:72:
  7273. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7274.  
  7275. inp = 'def f(*args, x=42, y=65):\n  return 42\n', run = True, mode = 'exec'
  7276.  
  7277.     def check_ast(inp, run=True, mode='eval'):
  7278.         # expect a Python AST
  7279.         exp = ast.parse(inp, mode=mode)
  7280.         # observe something from xonsh
  7281. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7282. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7283.  
  7284. tests/test_parser.py:62: AttributeError
  7285. ____________________________________________________________________ test_func_x_args[0] _____________________________________________________________________
  7286.  
  7287. inp = 'def f(x, *args):\n  return 42\n', run = True, mode = 'exec'
  7288.  
  7289.     def check_stmts(inp, run=True, mode='exec'):
  7290.         if not inp.endswith('\n'):
  7291.             inp += '\n'
  7292. >       check_ast(inp, run=run, mode=mode)
  7293.  
  7294. tests/test_parser.py:72:
  7295. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7296.  
  7297. inp = 'def f(x, *args):\n  return 42\n', run = True, mode = 'exec'
  7298.  
  7299.     def check_ast(inp, run=True, mode='eval'):
  7300.         # expect a Python AST
  7301.         exp = ast.parse(inp, mode=mode)
  7302.         # observe something from xonsh
  7303. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7304. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7305.  
  7306. tests/test_parser.py:62: AttributeError
  7307. ___________________________________________________________________ test_func_x_args_y[0] ____________________________________________________________________
  7308.  
  7309. inp = 'def f(x, *args, y):\n  return 42\n', run = True, mode = 'exec'
  7310.  
  7311.     def check_stmts(inp, run=True, mode='exec'):
  7312.         if not inp.endswith('\n'):
  7313.             inp += '\n'
  7314. >       check_ast(inp, run=run, mode=mode)
  7315.  
  7316. tests/test_parser.py:72:
  7317. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7318.  
  7319. inp = 'def f(x, *args, y):\n  return 42\n', run = True, mode = 'exec'
  7320.  
  7321.     def check_ast(inp, run=True, mode='eval'):
  7322.         # expect a Python AST
  7323.         exp = ast.parse(inp, mode=mode)
  7324.         # observe something from xonsh
  7325. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7326. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7327.  
  7328. tests/test_parser.py:62: AttributeError
  7329. __________________________________________________________________ test_func_x_args_y_z[0] ___________________________________________________________________
  7330.  
  7331. inp = 'def f(x, *args, y, z):\n  return 42\n', run = True, mode = 'exec'
  7332.  
  7333.     def check_stmts(inp, run=True, mode='exec'):
  7334.         if not inp.endswith('\n'):
  7335.             inp += '\n'
  7336. >       check_ast(inp, run=run, mode=mode)
  7337.  
  7338. tests/test_parser.py:72:
  7339. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7340.  
  7341. inp = 'def f(x, *args, y, z):\n  return 42\n', run = True, mode = 'exec'
  7342.  
  7343.     def check_ast(inp, run=True, mode='eval'):
  7344.         # expect a Python AST
  7345.         exp = ast.parse(inp, mode=mode)
  7346.         # observe something from xonsh
  7347. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7348. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7349.  
  7350. tests/test_parser.py:62: AttributeError
  7351. ____________________________________________________________________ test_func_kwargs[0] _____________________________________________________________________
  7352.  
  7353. inp = 'def f(**kwargs):\n  return 42\n', run = True, mode = 'exec'
  7354.  
  7355.     def check_stmts(inp, run=True, mode='exec'):
  7356.         if not inp.endswith('\n'):
  7357.             inp += '\n'
  7358. >       check_ast(inp, run=run, mode=mode)
  7359.  
  7360. tests/test_parser.py:72:
  7361. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7362.  
  7363. inp = 'def f(**kwargs):\n  return 42\n', run = True, mode = 'exec'
  7364.  
  7365.     def check_ast(inp, run=True, mode='eval'):
  7366.         # expect a Python AST
  7367.         exp = ast.parse(inp, mode=mode)
  7368.         # observe something from xonsh
  7369. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7370. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7371.  
  7372. tests/test_parser.py:62: AttributeError
  7373. ___________________________________________________________________ test_func_x_kwargs[0] ____________________________________________________________________
  7374.  
  7375. inp = 'def f(x, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7376.  
  7377.     def check_stmts(inp, run=True, mode='exec'):
  7378.         if not inp.endswith('\n'):
  7379.             inp += '\n'
  7380. >       check_ast(inp, run=run, mode=mode)
  7381.  
  7382. tests/test_parser.py:72:
  7383. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7384.  
  7385. inp = 'def f(x, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7386.  
  7387.     def check_ast(inp, run=True, mode='eval'):
  7388.         # expect a Python AST
  7389.         exp = ast.parse(inp, mode=mode)
  7390.         # observe something from xonsh
  7391. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7392. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7393.  
  7394. tests/test_parser.py:62: AttributeError
  7395. __________________________________________________________________ test_func_x_y_kwargs[0] ___________________________________________________________________
  7396.  
  7397. inp = 'def f(x, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7398.  
  7399.     def check_stmts(inp, run=True, mode='exec'):
  7400.         if not inp.endswith('\n'):
  7401.             inp += '\n'
  7402. >       check_ast(inp, run=run, mode=mode)
  7403.  
  7404. tests/test_parser.py:72:
  7405. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7406.  
  7407. inp = 'def f(x, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7408.  
  7409.     def check_ast(inp, run=True, mode='eval'):
  7410.         # expect a Python AST
  7411.         exp = ast.parse(inp, mode=mode)
  7412.         # observe something from xonsh
  7413. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7414. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7415.  
  7416. tests/test_parser.py:62: AttributeError
  7417. _________________________________________________________________ test_func_x_kwy_kwargs[0] __________________________________________________________________
  7418.  
  7419. inp = 'def f(x, y=42, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7420.  
  7421.     def check_stmts(inp, run=True, mode='exec'):
  7422.         if not inp.endswith('\n'):
  7423.             inp += '\n'
  7424. >       check_ast(inp, run=run, mode=mode)
  7425.  
  7426. tests/test_parser.py:72:
  7427. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7428.  
  7429. inp = 'def f(x, y=42, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7430.  
  7431.     def check_ast(inp, run=True, mode='eval'):
  7432.         # expect a Python AST
  7433.         exp = ast.parse(inp, mode=mode)
  7434.         # observe something from xonsh
  7435. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7436. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7437.  
  7438. tests/test_parser.py:62: AttributeError
  7439. __________________________________________________________________ test_func_args_kwargs[0] __________________________________________________________________
  7440.  
  7441. inp = 'def f(*args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7442.  
  7443.     def check_stmts(inp, run=True, mode='exec'):
  7444.         if not inp.endswith('\n'):
  7445.             inp += '\n'
  7446. >       check_ast(inp, run=run, mode=mode)
  7447.  
  7448. tests/test_parser.py:72:
  7449. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7450.  
  7451. inp = 'def f(*args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7452.  
  7453.     def check_ast(inp, run=True, mode='eval'):
  7454.         # expect a Python AST
  7455.         exp = ast.parse(inp, mode=mode)
  7456.         # observe something from xonsh
  7457. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7458. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7459.  
  7460. tests/test_parser.py:62: AttributeError
  7461. _________________________________________________________________ test_func_x_args_kwargs[0] _________________________________________________________________
  7462.  
  7463. inp = 'def f(x, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7464.  
  7465.     def check_stmts(inp, run=True, mode='exec'):
  7466.         if not inp.endswith('\n'):
  7467.             inp += '\n'
  7468. >       check_ast(inp, run=run, mode=mode)
  7469.  
  7470. tests/test_parser.py:72:
  7471. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7472.  
  7473. inp = 'def f(x, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7474.  
  7475.     def check_ast(inp, run=True, mode='eval'):
  7476.         # expect a Python AST
  7477.         exp = ast.parse(inp, mode=mode)
  7478.         # observe something from xonsh
  7479. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7480. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7481.  
  7482. tests/test_parser.py:62: AttributeError
  7483. ________________________________________________________________ test_func_x_y_args_kwargs[0] ________________________________________________________________
  7484.  
  7485. inp = 'def f(x, y, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7486.  
  7487.     def check_stmts(inp, run=True, mode='exec'):
  7488.         if not inp.endswith('\n'):
  7489.             inp += '\n'
  7490. >       check_ast(inp, run=run, mode=mode)
  7491.  
  7492. tests/test_parser.py:72:
  7493. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7494.  
  7495. inp = 'def f(x, y, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7496.  
  7497.     def check_ast(inp, run=True, mode='eval'):
  7498.         # expect a Python AST
  7499.         exp = ast.parse(inp, mode=mode)
  7500.         # observe something from xonsh
  7501. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7502. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7503.  
  7504. tests/test_parser.py:62: AttributeError
  7505. ________________________________________________________________ test_func_kwx_args_kwargs[0] ________________________________________________________________
  7506.  
  7507. inp = 'def f(x=10, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7508.  
  7509.     def check_stmts(inp, run=True, mode='exec'):
  7510.         if not inp.endswith('\n'):
  7511.             inp += '\n'
  7512. >       check_ast(inp, run=run, mode=mode)
  7513.  
  7514. tests/test_parser.py:72:
  7515. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7516.  
  7517. inp = 'def f(x=10, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7518.  
  7519.     def check_ast(inp, run=True, mode='eval'):
  7520.         # expect a Python AST
  7521.         exp = ast.parse(inp, mode=mode)
  7522.         # observe something from xonsh
  7523. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7524. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7525.  
  7526. tests/test_parser.py:62: AttributeError
  7527. _______________________________________________________________ test_func_x_kwy_args_kwargs[0] _______________________________________________________________
  7528.  
  7529. inp = 'def f(x, y=42, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7530.  
  7531.     def check_stmts(inp, run=True, mode='exec'):
  7532.         if not inp.endswith('\n'):
  7533.             inp += '\n'
  7534. >       check_ast(inp, run=run, mode=mode)
  7535.  
  7536. tests/test_parser.py:72:
  7537. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7538.  
  7539. inp = 'def f(x, y=42, *args, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7540.  
  7541.     def check_ast(inp, run=True, mode='eval'):
  7542.         # expect a Python AST
  7543.         exp = ast.parse(inp, mode=mode)
  7544.         # observe something from xonsh
  7545. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7546. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7547.  
  7548. tests/test_parser.py:62: AttributeError
  7549. ________________________________________________________________ test_func_x_args_y_kwargs[0] ________________________________________________________________
  7550.  
  7551. inp = 'def f(x, *args, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7552.  
  7553.     def check_stmts(inp, run=True, mode='exec'):
  7554.         if not inp.endswith('\n'):
  7555.             inp += '\n'
  7556. >       check_ast(inp, run=run, mode=mode)
  7557.  
  7558. tests/test_parser.py:72:
  7559. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7560.  
  7561. inp = 'def f(x, *args, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7562.  
  7563.     def check_ast(inp, run=True, mode='eval'):
  7564.         # expect a Python AST
  7565.         exp = ast.parse(inp, mode=mode)
  7566.         # observe something from xonsh
  7567. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7568. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7569.  
  7570. tests/test_parser.py:62: AttributeError
  7571. _______________________________________________________________ test_func_x_args_kwy_kwargs[0] _______________________________________________________________
  7572.  
  7573. inp = 'def f(x, *args, y=42, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7574.  
  7575.     def check_stmts(inp, run=True, mode='exec'):
  7576.         if not inp.endswith('\n'):
  7577.             inp += '\n'
  7578. >       check_ast(inp, run=run, mode=mode)
  7579.  
  7580. tests/test_parser.py:72:
  7581. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7582.  
  7583. inp = 'def f(x, *args, y=42, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7584.  
  7585.     def check_ast(inp, run=True, mode='eval'):
  7586.         # expect a Python AST
  7587.         exp = ast.parse(inp, mode=mode)
  7588.         # observe something from xonsh
  7589. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7590. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7591.  
  7592. tests/test_parser.py:62: AttributeError
  7593. _________________________________________________________________ test_func_args_y_kwargs[0] _________________________________________________________________
  7594.  
  7595. inp = 'def f(*args, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7596.  
  7597.     def check_stmts(inp, run=True, mode='exec'):
  7598.         if not inp.endswith('\n'):
  7599.             inp += '\n'
  7600. >       check_ast(inp, run=run, mode=mode)
  7601.  
  7602. tests/test_parser.py:72:
  7603. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7604.  
  7605. inp = 'def f(*args, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7606.  
  7607.     def check_ast(inp, run=True, mode='eval'):
  7608.         # expect a Python AST
  7609.         exp = ast.parse(inp, mode=mode)
  7610.         # observe something from xonsh
  7611. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7612. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7613.  
  7614. tests/test_parser.py:62: AttributeError
  7615. ____________________________________________________________________ test_func_star_x[0] _____________________________________________________________________
  7616.  
  7617. inp = 'def f(*, x):\n  return 42\n', run = True, mode = 'exec'
  7618.  
  7619.     def check_stmts(inp, run=True, mode='exec'):
  7620.         if not inp.endswith('\n'):
  7621.             inp += '\n'
  7622. >       check_ast(inp, run=run, mode=mode)
  7623.  
  7624. tests/test_parser.py:72:
  7625. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7626.  
  7627. inp = 'def f(*, x):\n  return 42\n', run = True, mode = 'exec'
  7628.  
  7629.     def check_ast(inp, run=True, mode='eval'):
  7630.         # expect a Python AST
  7631.         exp = ast.parse(inp, mode=mode)
  7632.         # observe something from xonsh
  7633. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7634. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7635.  
  7636. tests/test_parser.py:62: AttributeError
  7637. ___________________________________________________________________ test_func_star_x_y[0] ____________________________________________________________________
  7638.  
  7639. inp = 'def f(*, x, y):\n  return 42\n', run = True, mode = 'exec'
  7640.  
  7641.     def check_stmts(inp, run=True, mode='exec'):
  7642.         if not inp.endswith('\n'):
  7643.             inp += '\n'
  7644. >       check_ast(inp, run=run, mode=mode)
  7645.  
  7646. tests/test_parser.py:72:
  7647. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7648.  
  7649. inp = 'def f(*, x, y):\n  return 42\n', run = True, mode = 'exec'
  7650.  
  7651.     def check_ast(inp, run=True, mode='eval'):
  7652.         # expect a Python AST
  7653.         exp = ast.parse(inp, mode=mode)
  7654.         # observe something from xonsh
  7655. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7656. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7657.  
  7658. tests/test_parser.py:62: AttributeError
  7659. _________________________________________________________________ test_func_star_x_kwargs[0] _________________________________________________________________
  7660.  
  7661. inp = 'def f(*, x, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7662.  
  7663.     def check_stmts(inp, run=True, mode='exec'):
  7664.         if not inp.endswith('\n'):
  7665.             inp += '\n'
  7666. >       check_ast(inp, run=run, mode=mode)
  7667.  
  7668. tests/test_parser.py:72:
  7669. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7670.  
  7671. inp = 'def f(*, x, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7672.  
  7673.     def check_ast(inp, run=True, mode='eval'):
  7674.         # expect a Python AST
  7675.         exp = ast.parse(inp, mode=mode)
  7676.         # observe something from xonsh
  7677. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7678. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7679.  
  7680. tests/test_parser.py:62: AttributeError
  7681. ________________________________________________________________ test_func_star_kwx_kwargs[0] ________________________________________________________________
  7682.  
  7683. inp = 'def f(*, x=42, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7684.  
  7685.     def check_stmts(inp, run=True, mode='exec'):
  7686.         if not inp.endswith('\n'):
  7687.             inp += '\n'
  7688. >       check_ast(inp, run=run, mode=mode)
  7689.  
  7690. tests/test_parser.py:72:
  7691. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7692.  
  7693. inp = 'def f(*, x=42, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7694.  
  7695.     def check_ast(inp, run=True, mode='eval'):
  7696.         # expect a Python AST
  7697.         exp = ast.parse(inp, mode=mode)
  7698.         # observe something from xonsh
  7699. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7700. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7701.  
  7702. tests/test_parser.py:62: AttributeError
  7703. ___________________________________________________________________ test_func_x_star_y[0] ____________________________________________________________________
  7704.  
  7705. inp = 'def f(x, *, y):\n  return 42\n', run = True, mode = 'exec'
  7706.  
  7707.     def check_stmts(inp, run=True, mode='exec'):
  7708.         if not inp.endswith('\n'):
  7709.             inp += '\n'
  7710. >       check_ast(inp, run=run, mode=mode)
  7711.  
  7712. tests/test_parser.py:72:
  7713. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7714.  
  7715. inp = 'def f(x, *, y):\n  return 42\n', run = True, mode = 'exec'
  7716.  
  7717.     def check_ast(inp, run=True, mode='eval'):
  7718.         # expect a Python AST
  7719.         exp = ast.parse(inp, mode=mode)
  7720.         # observe something from xonsh
  7721. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7722. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7723.  
  7724. tests/test_parser.py:62: AttributeError
  7725. __________________________________________________________________ test_func_x_y_star_z[0] ___________________________________________________________________
  7726.  
  7727. inp = 'def f(x, y, *, z):\n  return 42\n', run = True, mode = 'exec'
  7728.  
  7729.     def check_stmts(inp, run=True, mode='exec'):
  7730.         if not inp.endswith('\n'):
  7731.             inp += '\n'
  7732. >       check_ast(inp, run=run, mode=mode)
  7733.  
  7734. tests/test_parser.py:72:
  7735. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7736.  
  7737. inp = 'def f(x, y, *, z):\n  return 42\n', run = True, mode = 'exec'
  7738.  
  7739.     def check_ast(inp, run=True, mode='eval'):
  7740.         # expect a Python AST
  7741.         exp = ast.parse(inp, mode=mode)
  7742.         # observe something from xonsh
  7743. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7744. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7745.  
  7746. tests/test_parser.py:62: AttributeError
  7747. _________________________________________________________________ test_func_x_kwy_star_y[0] __________________________________________________________________
  7748.  
  7749. inp = 'def f(x, y=42, *, z):\n  return 42\n', run = True, mode = 'exec'
  7750.  
  7751.     def check_stmts(inp, run=True, mode='exec'):
  7752.         if not inp.endswith('\n'):
  7753.             inp += '\n'
  7754. >       check_ast(inp, run=run, mode=mode)
  7755.  
  7756. tests/test_parser.py:72:
  7757. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7758.  
  7759. inp = 'def f(x, y=42, *, z):\n  return 42\n', run = True, mode = 'exec'
  7760.  
  7761.     def check_ast(inp, run=True, mode='eval'):
  7762.         # expect a Python AST
  7763.         exp = ast.parse(inp, mode=mode)
  7764.         # observe something from xonsh
  7765. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7766. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7767.  
  7768. tests/test_parser.py:62: AttributeError
  7769. ________________________________________________________________ test_func_x_kwy_star_kwy[0] _________________________________________________________________
  7770.  
  7771. inp = 'def f(x, y=42, *, z=65):\n  return 42\n', run = True, mode = 'exec'
  7772.  
  7773.     def check_stmts(inp, run=True, mode='exec'):
  7774.         if not inp.endswith('\n'):
  7775.             inp += '\n'
  7776. >       check_ast(inp, run=run, mode=mode)
  7777.  
  7778. tests/test_parser.py:72:
  7779. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7780.  
  7781. inp = 'def f(x, y=42, *, z=65):\n  return 42\n', run = True, mode = 'exec'
  7782.  
  7783.     def check_ast(inp, run=True, mode='eval'):
  7784.         # expect a Python AST
  7785.         exp = ast.parse(inp, mode=mode)
  7786.         # observe something from xonsh
  7787. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7788. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7789.  
  7790. tests/test_parser.py:62: AttributeError
  7791. ________________________________________________________________ test_func_x_star_y_kwargs[0] ________________________________________________________________
  7792.  
  7793. inp = 'def f(x, *, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7794.  
  7795.     def check_stmts(inp, run=True, mode='exec'):
  7796.         if not inp.endswith('\n'):
  7797.             inp += '\n'
  7798. >       check_ast(inp, run=run, mode=mode)
  7799.  
  7800. tests/test_parser.py:72:
  7801. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7802.  
  7803. inp = 'def f(x, *, y, **kwargs):\n  return 42\n', run = True, mode = 'exec'
  7804.  
  7805.     def check_ast(inp, run=True, mode='eval'):
  7806.         # expect a Python AST
  7807.         exp = ast.parse(inp, mode=mode)
  7808.         # observe something from xonsh
  7809. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7810. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7811.  
  7812. tests/test_parser.py:62: AttributeError
  7813. ______________________________________________________________________ test_func_tx[0] _______________________________________________________________________
  7814.  
  7815. inp = 'def f(x:int):\n  return x\n', run = True, mode = 'exec'
  7816.  
  7817.     def check_stmts(inp, run=True, mode='exec'):
  7818.         if not inp.endswith('\n'):
  7819.             inp += '\n'
  7820. >       check_ast(inp, run=run, mode=mode)
  7821.  
  7822. tests/test_parser.py:72:
  7823. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7824.  
  7825. inp = 'def f(x:int):\n  return x\n', run = True, mode = 'exec'
  7826.  
  7827.     def check_ast(inp, run=True, mode='eval'):
  7828.         # expect a Python AST
  7829.         exp = ast.parse(inp, mode=mode)
  7830.         # observe something from xonsh
  7831. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7832. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7833.  
  7834. tests/test_parser.py:62: AttributeError
  7835. ______________________________________________________________________ test_func_txy[0] ______________________________________________________________________
  7836.  
  7837. inp = 'def f(x:int, y:float=10.0):\n  return x\n', run = True, mode = 'exec'
  7838.  
  7839.     def check_stmts(inp, run=True, mode='exec'):
  7840.         if not inp.endswith('\n'):
  7841.             inp += '\n'
  7842. >       check_ast(inp, run=run, mode=mode)
  7843.  
  7844. tests/test_parser.py:72:
  7845. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7846.  
  7847. inp = 'def f(x:int, y:float=10.0):\n  return x\n', run = True, mode = 'exec'
  7848.  
  7849.     def check_ast(inp, run=True, mode='eval'):
  7850.         # expect a Python AST
  7851.         exp = ast.parse(inp, mode=mode)
  7852.         # observe something from xonsh
  7853. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7854. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7855.  
  7856. tests/test_parser.py:62: AttributeError
  7857. _______________________________________________________________________ test_class[0] ________________________________________________________________________
  7858.  
  7859. inp = 'class X:\n  pass\n', run = True, mode = 'exec'
  7860.  
  7861.     def check_stmts(inp, run=True, mode='exec'):
  7862.         if not inp.endswith('\n'):
  7863.             inp += '\n'
  7864. >       check_ast(inp, run=run, mode=mode)
  7865.  
  7866. tests/test_parser.py:72:
  7867. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7868.  
  7869. inp = 'class X:\n  pass\n', run = True, mode = 'exec'
  7870.  
  7871.     def check_ast(inp, run=True, mode='eval'):
  7872.         # expect a Python AST
  7873.         exp = ast.parse(inp, mode=mode)
  7874.         # observe something from xonsh
  7875. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7876. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7877.  
  7878. tests/test_parser.py:62: AttributeError
  7879. _____________________________________________________________________ test_class_obj[0] ______________________________________________________________________
  7880.  
  7881. inp = 'class X(object):\n  pass\n', run = True, mode = 'exec'
  7882.  
  7883.     def check_stmts(inp, run=True, mode='exec'):
  7884.         if not inp.endswith('\n'):
  7885.             inp += '\n'
  7886. >       check_ast(inp, run=run, mode=mode)
  7887.  
  7888. tests/test_parser.py:72:
  7889. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7890.  
  7891. inp = 'class X(object):\n  pass\n', run = True, mode = 'exec'
  7892.  
  7893.     def check_ast(inp, run=True, mode='eval'):
  7894.         # expect a Python AST
  7895.         exp = ast.parse(inp, mode=mode)
  7896.         # observe something from xonsh
  7897. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7898. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7899.  
  7900. tests/test_parser.py:62: AttributeError
  7901. ___________________________________________________________________ test_class_int_flt[0] ____________________________________________________________________
  7902.  
  7903. inp = 'class X(int, object):\n  pass\n', run = True, mode = 'exec'
  7904.  
  7905.     def check_stmts(inp, run=True, mode='exec'):
  7906.         if not inp.endswith('\n'):
  7907.             inp += '\n'
  7908. >       check_ast(inp, run=run, mode=mode)
  7909.  
  7910. tests/test_parser.py:72:
  7911. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7912.  
  7913. inp = 'class X(int, object):\n  pass\n', run = True, mode = 'exec'
  7914.  
  7915.     def check_ast(inp, run=True, mode='eval'):
  7916.         # expect a Python AST
  7917.         exp = ast.parse(inp, mode=mode)
  7918.         # observe something from xonsh
  7919. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7920. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7921.  
  7922. tests/test_parser.py:62: AttributeError
  7923. ____________________________________________________________________ test_class_obj_kw[0] ____________________________________________________________________
  7924.  
  7925. inp = 'class X(object=5):\n  pass\n', run = False, mode = 'exec'
  7926.  
  7927.     def check_stmts(inp, run=True, mode='exec'):
  7928.         if not inp.endswith('\n'):
  7929.             inp += '\n'
  7930. >       check_ast(inp, run=run, mode=mode)
  7931.  
  7932. tests/test_parser.py:72:
  7933. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7934.  
  7935. inp = 'class X(object=5):\n  pass\n', run = False, mode = 'exec'
  7936.  
  7937.     def check_ast(inp, run=True, mode='eval'):
  7938.         # expect a Python AST
  7939.         exp = ast.parse(inp, mode=mode)
  7940.         # observe something from xonsh
  7941. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7942. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7943.  
  7944. tests/test_parser.py:62: AttributeError
  7945. _____________________________________________________________________ test_decorator[0] ______________________________________________________________________
  7946.  
  7947. inp = '@g\ndef f():\n  pass\n', run = False, mode = 'exec'
  7948.  
  7949.     def check_stmts(inp, run=True, mode='exec'):
  7950.         if not inp.endswith('\n'):
  7951.             inp += '\n'
  7952. >       check_ast(inp, run=run, mode=mode)
  7953.  
  7954. tests/test_parser.py:72:
  7955. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7956.  
  7957. inp = '@g\ndef f():\n  pass\n', run = False, mode = 'exec'
  7958.  
  7959.     def check_ast(inp, run=True, mode='eval'):
  7960.         # expect a Python AST
  7961.         exp = ast.parse(inp, mode=mode)
  7962.         # observe something from xonsh
  7963. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7964. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7965.  
  7966. tests/test_parser.py:62: AttributeError
  7967. ____________________________________________________________________ test_decorator_2[0] _____________________________________________________________________
  7968.  
  7969. inp = '@h\n@g\ndef f():\n  pass\n', run = False, mode = 'exec'
  7970.  
  7971.     def check_stmts(inp, run=True, mode='exec'):
  7972.         if not inp.endswith('\n'):
  7973.             inp += '\n'
  7974. >       check_ast(inp, run=run, mode=mode)
  7975.  
  7976. tests/test_parser.py:72:
  7977. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7978.  
  7979. inp = '@h\n@g\ndef f():\n  pass\n', run = False, mode = 'exec'
  7980.  
  7981.     def check_ast(inp, run=True, mode='eval'):
  7982.         # expect a Python AST
  7983.         exp = ast.parse(inp, mode=mode)
  7984.         # observe something from xonsh
  7985. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  7986. E       AttributeError: 'NoneType' object has no attribute 'parse'
  7987.  
  7988. tests/test_parser.py:62: AttributeError
  7989. ___________________________________________________________________ test_decorator_call[0] ___________________________________________________________________
  7990.  
  7991. inp = '@g()\ndef f():\n  pass\n', run = False, mode = 'exec'
  7992.  
  7993.     def check_stmts(inp, run=True, mode='exec'):
  7994.         if not inp.endswith('\n'):
  7995.             inp += '\n'
  7996. >       check_ast(inp, run=run, mode=mode)
  7997.  
  7998. tests/test_parser.py:72:
  7999. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8000.  
  8001. inp = '@g()\ndef f():\n  pass\n', run = False, mode = 'exec'
  8002.  
  8003.     def check_ast(inp, run=True, mode='eval'):
  8004.         # expect a Python AST
  8005.         exp = ast.parse(inp, mode=mode)
  8006.         # observe something from xonsh
  8007. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8008. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8009.  
  8010. tests/test_parser.py:62: AttributeError
  8011. ________________________________________________________________ test_decorator_call_args[0] _________________________________________________________________
  8012.  
  8013. inp = '@g(x, y=10)\ndef f():\n  pass\n', run = False, mode = 'exec'
  8014.  
  8015.     def check_stmts(inp, run=True, mode='exec'):
  8016.         if not inp.endswith('\n'):
  8017.             inp += '\n'
  8018. >       check_ast(inp, run=run, mode=mode)
  8019.  
  8020. tests/test_parser.py:72:
  8021. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8022.  
  8023. inp = '@g(x, y=10)\ndef f():\n  pass\n', run = False, mode = 'exec'
  8024.  
  8025.     def check_ast(inp, run=True, mode='eval'):
  8026.         # expect a Python AST
  8027.         exp = ast.parse(inp, mode=mode)
  8028.         # observe something from xonsh
  8029. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8030. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8031.  
  8032. tests/test_parser.py:62: AttributeError
  8033. ______________________________________________________________ test_decorator_dot_call_args[0] _______________________________________________________________
  8034.  
  8035. inp = '@h.g(x, y=10)\ndef f():\n  pass\n', run = False, mode = 'exec'
  8036.  
  8037.     def check_stmts(inp, run=True, mode='exec'):
  8038.         if not inp.endswith('\n'):
  8039.             inp += '\n'
  8040. >       check_ast(inp, run=run, mode=mode)
  8041.  
  8042. tests/test_parser.py:72:
  8043. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8044.  
  8045. inp = '@h.g(x, y=10)\ndef f():\n  pass\n', run = False, mode = 'exec'
  8046.  
  8047.     def check_ast(inp, run=True, mode='eval'):
  8048.         # expect a Python AST
  8049.         exp = ast.parse(inp, mode=mode)
  8050.         # observe something from xonsh
  8051. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8052. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8053.  
  8054. tests/test_parser.py:62: AttributeError
  8055. ____________________________________________________________ test_decorator_dot_dot_call_args[0] _____________________________________________________________
  8056.  
  8057. inp = '@i.h.g(x, y=10)\ndef f():\n  pass\n', run = False, mode = 'exec'
  8058.  
  8059.     def check_stmts(inp, run=True, mode='exec'):
  8060.         if not inp.endswith('\n'):
  8061.             inp += '\n'
  8062. >       check_ast(inp, run=run, mode=mode)
  8063.  
  8064. tests/test_parser.py:72:
  8065. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8066.  
  8067. inp = '@i.h.g(x, y=10)\ndef f():\n  pass\n', run = False, mode = 'exec'
  8068.  
  8069.     def check_ast(inp, run=True, mode='eval'):
  8070.         # expect a Python AST
  8071.         exp = ast.parse(inp, mode=mode)
  8072.         # observe something from xonsh
  8073. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8074. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8075.  
  8076. tests/test_parser.py:62: AttributeError
  8077. _________________________________________________________________ test_broken_prompt_func[0] _________________________________________________________________
  8078.  
  8079. inp = "def prompt():\n    return '{user}'.format(\n       user='me')\n", run = False, mode = 'exec'
  8080.  
  8081.     def check_stmts(inp, run=True, mode='exec'):
  8082.         if not inp.endswith('\n'):
  8083.             inp += '\n'
  8084. >       check_ast(inp, run=run, mode=mode)
  8085.  
  8086. tests/test_parser.py:72:
  8087. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8088.  
  8089. inp = "def prompt():\n    return '{user}'.format(\n       user='me')\n", run = False, mode = 'exec'
  8090.  
  8091.     def check_ast(inp, run=True, mode='eval'):
  8092.         # expect a Python AST
  8093.         exp = ast.parse(inp, mode=mode)
  8094.         # observe something from xonsh
  8095. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8096. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8097.  
  8098. tests/test_parser.py:62: AttributeError
  8099. _________________________________________________________________ test_class_with_methods[0] _________________________________________________________________
  8100.  
  8101. inp = 'class Test:\n   def __init__(self):\n       self.msg("hello world")\n   def msg(self, m):\n      print(m)\n', run = False, mode = 'exec'
  8102.  
  8103.     def check_stmts(inp, run=True, mode='exec'):
  8104.         if not inp.endswith('\n'):
  8105.             inp += '\n'
  8106. >       check_ast(inp, run=run, mode=mode)
  8107.  
  8108. tests/test_parser.py:72:
  8109. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8110.  
  8111. inp = 'class Test:\n   def __init__(self):\n       self.msg("hello world")\n   def msg(self, m):\n      print(m)\n', run = False, mode = 'exec'
  8112.  
  8113.     def check_ast(inp, run=True, mode='eval'):
  8114.         # expect a Python AST
  8115.         exp = ast.parse(inp, mode=mode)
  8116.         # observe something from xonsh
  8117. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8118. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8119.  
  8120. tests/test_parser.py:62: AttributeError
  8121. __________________________________________________________________ test_nested_functions[0] __________________________________________________________________
  8122.  
  8123. inp = 'def test(x):\n    def test2(y):\n        return y+x\n    return test2\n', run = False, mode = 'exec'
  8124.  
  8125.     def check_stmts(inp, run=True, mode='exec'):
  8126.         if not inp.endswith('\n'):
  8127.             inp += '\n'
  8128. >       check_ast(inp, run=run, mode=mode)
  8129.  
  8130. tests/test_parser.py:72:
  8131. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8132.  
  8133. inp = 'def test(x):\n    def test2(y):\n        return y+x\n    return test2\n', run = False, mode = 'exec'
  8134.  
  8135.     def check_ast(inp, run=True, mode='eval'):
  8136.         # expect a Python AST
  8137.         exp = ast.parse(inp, mode=mode)
  8138.         # observe something from xonsh
  8139. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8140. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8141.  
  8142. tests/test_parser.py:62: AttributeError
  8143. ________________________________________________________________ test_function_blank_line[0] _________________________________________________________________
  8144.  
  8145. inp = 'def foo():\n    ascii_art = [\n        "(╯°□°)╯︵ ┻━┻",\n        "¯\\_(ツ)_/¯",\n        "┻━┻︵ \\(°□°)/ ︵ ┻━┻",\n    ]\... import random\n    i = random.randint(0,len(ascii_art)) - 1\n    print("    Get to work!")\n    print(ascii_art[i])\n'
  8146. run = False, mode = 'exec'
  8147.  
  8148.     def check_stmts(inp, run=True, mode='exec'):
  8149.         if not inp.endswith('\n'):
  8150.             inp += '\n'
  8151. >       check_ast(inp, run=run, mode=mode)
  8152.  
  8153. tests/test_parser.py:72:
  8154. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8155.  
  8156. inp = 'def foo():\n    ascii_art = [\n        "(╯°□°)╯︵ ┻━┻",\n        "¯\\_(ツ)_/¯",\n        "┻━┻︵ \\(°□°)/ ︵ ┻━┻",\n    ]\... import random\n    i = random.randint(0,len(ascii_art)) - 1\n    print("    Get to work!")\n    print(ascii_art[i])\n'
  8157. run = False, mode = 'exec'
  8158.  
  8159.     def check_ast(inp, run=True, mode='eval'):
  8160.         # expect a Python AST
  8161.         exp = ast.parse(inp, mode=mode)
  8162.         # observe something from xonsh
  8163. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8164. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8165.  
  8166. tests/test_parser.py:62: AttributeError
  8167. _____________________________________________________________________ test_async_func[0] _____________________________________________________________________
  8168.  
  8169. inp = 'async def f():\n  pass\n', run = True, mode = 'exec'
  8170.  
  8171.     def check_stmts(inp, run=True, mode='exec'):
  8172.         if not inp.endswith('\n'):
  8173.             inp += '\n'
  8174. >       check_ast(inp, run=run, mode=mode)
  8175.  
  8176. tests/test_parser.py:72:
  8177. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8178.  
  8179. inp = 'async def f():\n  pass\n', run = True, mode = 'exec'
  8180.  
  8181.     def check_ast(inp, run=True, mode='eval'):
  8182.         # expect a Python AST
  8183.         exp = ast.parse(inp, mode=mode)
  8184.         # observe something from xonsh
  8185. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8186. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8187.  
  8188. tests/test_parser.py:62: AttributeError
  8189. __________________________________________________________________ test_async_decorator[0] ___________________________________________________________________
  8190.  
  8191. inp = '@g\nasync def f():\n  pass\n', run = False, mode = 'exec'
  8192.  
  8193.     def check_stmts(inp, run=True, mode='exec'):
  8194.         if not inp.endswith('\n'):
  8195.             inp += '\n'
  8196. >       check_ast(inp, run=run, mode=mode)
  8197.  
  8198. tests/test_parser.py:72:
  8199. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8200.  
  8201. inp = '@g\nasync def f():\n  pass\n', run = False, mode = 'exec'
  8202.  
  8203.     def check_ast(inp, run=True, mode='eval'):
  8204.         # expect a Python AST
  8205.         exp = ast.parse(inp, mode=mode)
  8206.         # observe something from xonsh
  8207. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8208. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8209.  
  8210. tests/test_parser.py:62: AttributeError
  8211. ____________________________________________________________________ test_async_await[0] _____________________________________________________________________
  8212.  
  8213. inp = 'async def f():\n    await fut\n', run = False, mode = 'exec'
  8214.  
  8215.     def check_stmts(inp, run=True, mode='exec'):
  8216.         if not inp.endswith('\n'):
  8217.             inp += '\n'
  8218. >       check_ast(inp, run=run, mode=mode)
  8219.  
  8220. tests/test_parser.py:72:
  8221. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8222.  
  8223. inp = 'async def f():\n    await fut\n', run = False, mode = 'exec'
  8224.  
  8225.     def check_ast(inp, run=True, mode='eval'):
  8226.         # expect a Python AST
  8227.         exp = ast.parse(inp, mode=mode)
  8228.         # observe something from xonsh
  8229. >       obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8230. E       AttributeError: 'NoneType' object has no attribute 'parse'
  8231.  
  8232. tests/test_parser.py:62: AttributeError
  8233. ____________________________________________________________________ test_dollar_name[0] _____________________________________________________________________
  8234.  
  8235. xenv = {'WAKKA': 42}, inp = '$WAKKA', run = True, mode = 'eval'
  8236.  
  8237.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8238.         with mock_xonsh_env(xenv):
  8239. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8240. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8241.  
  8242. tests/test_parser.py:76: AttributeError
  8243. _____________________________________________________________________ test_dollar_py[0] ______________________________________________________________________
  8244.  
  8245. xenv = {'WAKKA': 42}, inp = 'x = "WAKKA"; y = ${x}\n', run = True, mode = 'exec'
  8246.  
  8247.     def check_xonsh(xenv, inp, run=True, mode='exec'):
  8248.         if not inp.endswith('\n'):
  8249.             inp += '\n'
  8250. >       check_xonsh_ast(xenv, inp, run=run, mode=mode)
  8251.  
  8252. tests/test_parser.py:86:
  8253. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8254.  
  8255. xenv = {'WAKKA': 42}, inp = 'x = "WAKKA"; y = ${x}\n', run = True, mode = 'exec'
  8256.  
  8257.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8258.         with mock_xonsh_env(xenv):
  8259. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8260. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8261.  
  8262. tests/test_parser.py:76: AttributeError
  8263. ___________________________________________________________________ test_dollar_py_test[0] ___________________________________________________________________
  8264.  
  8265. xenv = {'WAKKA': 42}, inp = '${None or "WAKKA"}', run = True, mode = 'eval'
  8266.  
  8267.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8268.         with mock_xonsh_env(xenv):
  8269. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8270. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8271.  
  8272. tests/test_parser.py:76: AttributeError
  8273. ______________________________________________________________ test_dollar_py_recursive_name[0] ______________________________________________________________
  8274.  
  8275. xenv = {'JAWAKA': 'WAKKA', 'WAKKA': 42}, inp = '${$JAWAKA}', run = True, mode = 'eval'
  8276.  
  8277.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8278.         with mock_xonsh_env(xenv):
  8279. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8280. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8281.  
  8282. tests/test_parser.py:76: AttributeError
  8283. ___________________________________________________________ test_dollar_py_test_recursive_name[0] ____________________________________________________________
  8284.  
  8285. xenv = {'JAWAKA': 'WAKKA', 'WAKKA': 42}, inp = '${None or $JAWAKA}', run = True, mode = 'eval'
  8286.  
  8287.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8288.         with mock_xonsh_env(xenv):
  8289. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8290. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8291.  
  8292. tests/test_parser.py:76: AttributeError
  8293. ___________________________________________________________ test_dollar_py_test_recursive_test[0] ____________________________________________________________
  8294.  
  8295. xenv = {'JAWAKA': 'WAKKA', 'WAKKA': 42}, inp = '${${"JAWA" + $JAWAKA[-2:]}}', run = True, mode = 'eval'
  8296.  
  8297.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8298.         with mock_xonsh_env(xenv):
  8299. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8300. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8301.  
  8302. tests/test_parser.py:76: AttributeError
  8303. __________________________________________________________________ test_dollar_name_set[0] ___________________________________________________________________
  8304.  
  8305. xenv = {'WAKKA': 42}, inp = '$WAKKA = 42\n', run = True, mode = 'exec'
  8306.  
  8307.     def check_xonsh(xenv, inp, run=True, mode='exec'):
  8308.         if not inp.endswith('\n'):
  8309.             inp += '\n'
  8310. >       check_xonsh_ast(xenv, inp, run=run, mode=mode)
  8311.  
  8312. tests/test_parser.py:86:
  8313. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8314.  
  8315. xenv = {'WAKKA': 42}, inp = '$WAKKA = 42\n', run = True, mode = 'exec'
  8316.  
  8317.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8318.         with mock_xonsh_env(xenv):
  8319. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8320. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8321.  
  8322. tests/test_parser.py:76: AttributeError
  8323. ___________________________________________________________________ test_dollar_py_set[0] ____________________________________________________________________
  8324.  
  8325. xenv = {'WAKKA': 42}, inp = 'x = "WAKKA"; ${x} = 65\n', run = True, mode = 'exec'
  8326.  
  8327.     def check_xonsh(xenv, inp, run=True, mode='exec'):
  8328.         if not inp.endswith('\n'):
  8329.             inp += '\n'
  8330. >       check_xonsh_ast(xenv, inp, run=run, mode=mode)
  8331.  
  8332. tests/test_parser.py:86:
  8333. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8334.  
  8335. xenv = {'WAKKA': 42}, inp = 'x = "WAKKA"; ${x} = 65\n', run = True, mode = 'exec'
  8336.  
  8337.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8338.         with mock_xonsh_env(xenv):
  8339. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8340. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8341.  
  8342. tests/test_parser.py:76: AttributeError
  8343. _____________________________________________________________________ test_dollar_sub[0] _____________________________________________________________________
  8344.  
  8345. xenv = {}, inp = '$(ls)', run = True, mode = 'eval'
  8346.  
  8347.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8348.         with mock_xonsh_env(xenv):
  8349. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8350. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8351.  
  8352. tests/test_parser.py:76: AttributeError
  8353. __________________________________________________________________ test_dollar_sub_space[0] __________________________________________________________________
  8354.  
  8355. xenv = {}, inp = '$(ls )', run = True, mode = 'eval'
  8356.  
  8357.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8358.         with mock_xonsh_env(xenv):
  8359. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8360. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8361.  
  8362. tests/test_parser.py:76: AttributeError
  8363. _______________________________________________________________________ test_ls_dot[0] _______________________________________________________________________
  8364.  
  8365. xenv = {}, inp = '$(ls .)', run = True, mode = 'eval'
  8366.  
  8367.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8368.         with mock_xonsh_env(xenv):
  8369. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8370. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8371.  
  8372. tests/test_parser.py:76: AttributeError
  8373. ___________________________________________________________________ test_ls_dot_nesting[0] ___________________________________________________________________
  8374.  
  8375. xenv = {}, inp = '$(ls @(None or "."))', run = True, mode = 'eval'
  8376.  
  8377.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8378.         with mock_xonsh_env(xenv):
  8379. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8380. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8381.  
  8382. tests/test_parser.py:76: AttributeError
  8383. _________________________________________________________________ test_ls_dot_nesting_var[0] _________________________________________________________________
  8384.  
  8385. xenv = {}, inp = 'x = "."; $(ls @(None or x))\n', run = True, mode = 'exec'
  8386.  
  8387.     def check_xonsh(xenv, inp, run=True, mode='exec'):
  8388.         if not inp.endswith('\n'):
  8389.             inp += '\n'
  8390. >       check_xonsh_ast(xenv, inp, run=run, mode=mode)
  8391.  
  8392. tests/test_parser.py:86:
  8393. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8394.  
  8395. xenv = {}, inp = 'x = "."; $(ls @(None or x))\n', run = True, mode = 'exec'
  8396.  
  8397.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8398.         with mock_xonsh_env(xenv):
  8399. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8400. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8401.  
  8402. tests/test_parser.py:76: AttributeError
  8403. _____________________________________________________________________ test_ls_dot_str[0] _____________________________________________________________________
  8404.  
  8405. xenv = {}, inp = '$(ls ".")', run = True, mode = 'eval'
  8406.  
  8407.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8408.         with mock_xonsh_env(xenv):
  8409. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8410. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8411.  
  8412. tests/test_parser.py:76: AttributeError
  8413. _____________________________________________________________________ test_ls_nest_ls[0] _____________________________________________________________________
  8414.  
  8415. xenv = {}, inp = '$(ls $(ls))', run = True, mode = 'eval'
  8416.  
  8417.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8418.         with mock_xonsh_env(xenv):
  8419. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8420. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8421.  
  8422. tests/test_parser.py:76: AttributeError
  8423. __________________________________________________________________ test_ls_nest_ls_dashl[0] __________________________________________________________________
  8424.  
  8425. xenv = {}, inp = '$(ls $(ls) -l)', run = True, mode = 'eval'
  8426.  
  8427.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8428.         with mock_xonsh_env(xenv):
  8429. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8430. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8431.  
  8432. tests/test_parser.py:76: AttributeError
  8433. __________________________________________________________________ test_ls_envvar_strval[0] __________________________________________________________________
  8434.  
  8435. xenv = {'WAKKA': '.'}, inp = '$(ls $WAKKA)', run = True, mode = 'eval'
  8436.  
  8437.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8438.         with mock_xonsh_env(xenv):
  8439. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8440. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8441.  
  8442. tests/test_parser.py:76: AttributeError
  8443. _________________________________________________________________ test_ls_envvar_listval[0] __________________________________________________________________
  8444.  
  8445. xenv = {'WAKKA': ['.', '.']}, inp = '$(ls $WAKKA)', run = True, mode = 'eval'
  8446.  
  8447.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8448.         with mock_xonsh_env(xenv):
  8449. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8450. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8451.  
  8452. tests/test_parser.py:76: AttributeError
  8453. ______________________________________________________________________ test_question[0] ______________________________________________________________________
  8454.  
  8455. xenv = {}, inp = 'range?', run = True, mode = 'eval'
  8456.  
  8457.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8458.         with mock_xonsh_env(xenv):
  8459. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8460. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8461.  
  8462. tests/test_parser.py:76: AttributeError
  8463. ____________________________________________________________________ test_dobquestion[0] _____________________________________________________________________
  8464.  
  8465. xenv = {}, inp = 'range??', run = True, mode = 'eval'
  8466.  
  8467.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8468.         with mock_xonsh_env(xenv):
  8469. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8470. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8471.  
  8472. tests/test_parser.py:76: AttributeError
  8473. ___________________________________________________________________ test_question_chain[0] ___________________________________________________________________
  8474.  
  8475. xenv = {}, inp = 'range?.index?', run = True, mode = 'eval'
  8476.  
  8477.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8478.         with mock_xonsh_env(xenv):
  8479. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8480. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8481.  
  8482. tests/test_parser.py:76: AttributeError
  8483. ______________________________________________________________________ test_ls_regex[0] ______________________________________________________________________
  8484.  
  8485. xenv = {}, inp = '$(ls `[Ff]+i*LE` -l)', run = True, mode = 'eval'
  8486.  
  8487.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8488.         with mock_xonsh_env(xenv):
  8489. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8490. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8491.  
  8492. tests/test_parser.py:76: AttributeError
  8493. ______________________________________________________________________ test_backtick[0] ______________________________________________________________________
  8494.  
  8495. xenv = {}, inp = 'print(`.*`)', run = False, mode = 'eval'
  8496.  
  8497.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8498.         with mock_xonsh_env(xenv):
  8499. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8500. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8501.  
  8502. tests/test_parser.py:76: AttributeError
  8503. ___________________________________________________________________ test_uncaptured_sub[0] ___________________________________________________________________
  8504.  
  8505. xenv = {}, inp = '$[ls]', run = True, mode = 'eval'
  8506.  
  8507.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8508.         with mock_xonsh_env(xenv):
  8509. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8510. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8511.  
  8512. tests/test_parser.py:76: AttributeError
  8513. _________________________________________________________________ test_two_cmds_one_pipe[0] __________________________________________________________________
  8514.  
  8515. xenv = {}, inp = '$(ls | grep wakka)', run = False, mode = 'eval'
  8516.  
  8517.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8518.         with mock_xonsh_env(xenv):
  8519. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8520. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8521.  
  8522. tests/test_parser.py:76: AttributeError
  8523. ________________________________________________________________ test_three_cmds_two_pipes[0] ________________________________________________________________
  8524.  
  8525. xenv = {}, inp = '$(ls | grep wakka | grep jawaka)', run = False, mode = 'eval'
  8526.  
  8527.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8528.         with mock_xonsh_env(xenv):
  8529. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8530. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8531.  
  8532. tests/test_parser.py:76: AttributeError
  8533. ___________________________________________________________________ test_one_cmd_write[0] ____________________________________________________________________
  8534.  
  8535. xenv = {}, inp = '$(ls > x.py)', run = False, mode = 'eval'
  8536.  
  8537.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8538.         with mock_xonsh_env(xenv):
  8539. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8540. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8541.  
  8542. tests/test_parser.py:76: AttributeError
  8543. ___________________________________________________________________ test_one_cmd_append[0] ___________________________________________________________________
  8544.  
  8545. xenv = {}, inp = '$(ls >> x.py)', run = False, mode = 'eval'
  8546.  
  8547.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8548.         with mock_xonsh_env(xenv):
  8549. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8550. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8551.  
  8552. tests/test_parser.py:76: AttributeError
  8553. ___________________________________________________________________ test_two_cmds_write[0] ___________________________________________________________________
  8554.  
  8555. xenv = {}, inp = '$(ls | grep wakka > x.py)', run = False, mode = 'eval'
  8556.  
  8557.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8558.         with mock_xonsh_env(xenv):
  8559. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8560. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8561.  
  8562. tests/test_parser.py:76: AttributeError
  8563. __________________________________________________________________ test_two_cmds_append[0] ___________________________________________________________________
  8564.  
  8565. xenv = {}, inp = '$(ls | grep wakka >> x.py)', run = False, mode = 'eval'
  8566.  
  8567.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8568.         with mock_xonsh_env(xenv):
  8569. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8570. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8571.  
  8572. tests/test_parser.py:76: AttributeError
  8573. ___________________________________________________________________ test_cmd_background[0] ___________________________________________________________________
  8574.  
  8575. xenv = {}, inp = '$(emacs ugggh &)', run = False, mode = 'eval'
  8576.  
  8577.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8578.         with mock_xonsh_env(xenv):
  8579. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8580. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8581.  
  8582. tests/test_parser.py:76: AttributeError
  8583. _______________________________________________________________ test_cmd_background_nospace[0] _______________________________________________________________
  8584.  
  8585. xenv = {}, inp = '$(emacs ugggh&)', run = False, mode = 'eval'
  8586.  
  8587.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8588.         with mock_xonsh_env(xenv):
  8589. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8590. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8591.  
  8592. tests/test_parser.py:76: AttributeError
  8593. ________________________________________________________________ test_git_quotes_no_space[0] _________________________________________________________________
  8594.  
  8595. xenv = {}, inp = '$[git commit -am "wakka"]', run = False, mode = 'eval'
  8596.  
  8597.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8598.         with mock_xonsh_env(xenv):
  8599. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8600. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8601.  
  8602. tests/test_parser.py:76: AttributeError
  8603. __________________________________________________________________ test_git_quotes_space[0] __________________________________________________________________
  8604.  
  8605. xenv = {}, inp = '$[git commit -am "wakka jawaka"]', run = False, mode = 'eval'
  8606.  
  8607.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8608.         with mock_xonsh_env(xenv):
  8609. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8610. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8611.  
  8612. tests/test_parser.py:76: AttributeError
  8613. ________________________________________________________________ test_git_two_quotes_space[0] ________________________________________________________________
  8614.  
  8615. xenv = {}, inp = '$[git commit -am "wakka jawaka"]\n$[git commit -am "flock jawaka"]\n', run = False, mode = 'exec'
  8616.  
  8617.     def check_xonsh(xenv, inp, run=True, mode='exec'):
  8618.         if not inp.endswith('\n'):
  8619.             inp += '\n'
  8620. >       check_xonsh_ast(xenv, inp, run=run, mode=mode)
  8621.  
  8622. tests/test_parser.py:86:
  8623. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8624.  
  8625. xenv = {}, inp = '$[git commit -am "wakka jawaka"]\n$[git commit -am "flock jawaka"]\n', run = False, mode = 'exec'
  8626.  
  8627.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8628.         with mock_xonsh_env(xenv):
  8629. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8630. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8631.  
  8632. tests/test_parser.py:76: AttributeError
  8633. _____________________________________________________________ test_git_two_quotes_space_space[0] _____________________________________________________________
  8634.  
  8635. xenv = {}, inp = '$[git commit -am "wakka jawaka" ]\n$[git commit -am "flock jawaka milwaka" ]\n', run = False, mode = 'exec'
  8636.  
  8637.     def check_xonsh(xenv, inp, run=True, mode='exec'):
  8638.         if not inp.endswith('\n'):
  8639.             inp += '\n'
  8640. >       check_xonsh_ast(xenv, inp, run=run, mode=mode)
  8641.  
  8642. tests/test_parser.py:86:
  8643. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8644.  
  8645. xenv = {}, inp = '$[git commit -am "wakka jawaka" ]\n$[git commit -am "flock jawaka milwaka" ]\n', run = False, mode = 'exec'
  8646.  
  8647.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8648.         with mock_xonsh_env(xenv):
  8649. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8650. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8651.  
  8652. tests/test_parser.py:76: AttributeError
  8653. _________________________________________________________________ test_ls_quotes_3_space[0] __________________________________________________________________
  8654.  
  8655. xenv = {}, inp = '$[ls "wakka jawaka baraka"]', run = False, mode = 'eval'
  8656.  
  8657.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8658.         with mock_xonsh_env(xenv):
  8659. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8660. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8661.  
  8662. tests/test_parser.py:76: AttributeError
  8663. ____________________________________________________________________ test_comment_only[0] ____________________________________________________________________
  8664.  
  8665. xenv = {}, inp = '# hello', run = True, mode = 'eval'
  8666.  
  8667.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8668.         with mock_xonsh_env(xenv):
  8669. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8670. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8671.  
  8672. tests/test_parser.py:76: AttributeError
  8673. ______________________________________________________________________ test_redirect[0] ______________________________________________________________________
  8674.  
  8675. xenv = {}, inp = '$[cat < input.txt]', run = False, mode = 'eval'
  8676.  
  8677.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8678.         with mock_xonsh_env(xenv):
  8679. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8680. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8681.  
  8682. tests/test_parser.py:76: AttributeError
  8683. ______________________________________________________________________ test_redirect[1] ______________________________________________________________________
  8684.  
  8685. xenv = {}, inp = '$[< input.txt cat]', run = False, mode = 'eval'
  8686.  
  8687.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8688.         with mock_xonsh_env(xenv):
  8689. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8690. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8691.  
  8692. tests/test_parser.py:76: AttributeError
  8693. ______________________________________________________________________ test_redirect[2] ______________________________________________________________________
  8694.  
  8695. xenv = {}, inp = '$[echo "test" > test.txt]', run = False, mode = 'eval'
  8696.  
  8697.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8698.         with mock_xonsh_env(xenv):
  8699. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8700. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8701.  
  8702. tests/test_parser.py:76: AttributeError
  8703. ______________________________________________________________________ test_redirect[3] ______________________________________________________________________
  8704.  
  8705. xenv = {}, inp = '$[< input.txt echo "test" > test.txt]', run = False, mode = 'eval'
  8706.  
  8707.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8708.         with mock_xonsh_env(xenv):
  8709. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8710. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8711.  
  8712. tests/test_parser.py:76: AttributeError
  8713. ______________________________________________________________________ test_redirect[4] ______________________________________________________________________
  8714.  
  8715. xenv = {}, inp = '$[echo "test" > test.txt < input.txt]', run = False, mode = 'eval'
  8716.  
  8717.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8718.         with mock_xonsh_env(xenv):
  8719. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8720. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8721.  
  8722. tests/test_parser.py:76: AttributeError
  8723. ______________________________________________________________________ test_redirect[5] ______________________________________________________________________
  8724.  
  8725. xenv = {}, inp = '$[echo "test" 1> test.txt]', run = False, mode = 'eval'
  8726.  
  8727.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8728.         with mock_xonsh_env(xenv):
  8729. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8730. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8731.  
  8732. tests/test_parser.py:76: AttributeError
  8733. ______________________________________________________________________ test_redirect[6] ______________________________________________________________________
  8734.  
  8735. xenv = {}, inp = '$[< input.txt echo "test" 1> test.txt]', run = False, mode = 'eval'
  8736.  
  8737.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8738.         with mock_xonsh_env(xenv):
  8739. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8740. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8741.  
  8742. tests/test_parser.py:76: AttributeError
  8743. ______________________________________________________________________ test_redirect[7] ______________________________________________________________________
  8744.  
  8745. xenv = {}, inp = '$[echo "test" 1> test.txt < input.txt]', run = False, mode = 'eval'
  8746.  
  8747.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8748.         with mock_xonsh_env(xenv):
  8749. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8750. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8751.  
  8752. tests/test_parser.py:76: AttributeError
  8753. ______________________________________________________________________ test_redirect[8] ______________________________________________________________________
  8754.  
  8755. xenv = {}, inp = '$[echo "test" o> test.txt]', run = False, mode = 'eval'
  8756.  
  8757.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8758.         with mock_xonsh_env(xenv):
  8759. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8760. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8761.  
  8762. tests/test_parser.py:76: AttributeError
  8763. ______________________________________________________________________ test_redirect[9] ______________________________________________________________________
  8764.  
  8765. xenv = {}, inp = '$[< input.txt echo "test" o> test.txt]', run = False, mode = 'eval'
  8766.  
  8767.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8768.         with mock_xonsh_env(xenv):
  8769. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8770. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8771.  
  8772. tests/test_parser.py:76: AttributeError
  8773. _____________________________________________________________________ test_redirect[10] ______________________________________________________________________
  8774.  
  8775. xenv = {}, inp = '$[echo "test" o> test.txt < input.txt]', run = False, mode = 'eval'
  8776.  
  8777.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8778.         with mock_xonsh_env(xenv):
  8779. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8780. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8781.  
  8782. tests/test_parser.py:76: AttributeError
  8783. _____________________________________________________________________ test_redirect[11] ______________________________________________________________________
  8784.  
  8785. xenv = {}, inp = '$[echo "test" out> test.txt]', run = False, mode = 'eval'
  8786.  
  8787.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8788.         with mock_xonsh_env(xenv):
  8789. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8790. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8791.  
  8792. tests/test_parser.py:76: AttributeError
  8793. _____________________________________________________________________ test_redirect[12] ______________________________________________________________________
  8794.  
  8795. xenv = {}, inp = '$[< input.txt echo "test" out> test.txt]', run = False, mode = 'eval'
  8796.  
  8797.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8798.         with mock_xonsh_env(xenv):
  8799. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8800. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8801.  
  8802. tests/test_parser.py:76: AttributeError
  8803. _____________________________________________________________________ test_redirect[13] ______________________________________________________________________
  8804.  
  8805. xenv = {}, inp = '$[echo "test" out> test.txt < input.txt]', run = False, mode = 'eval'
  8806.  
  8807.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8808.         with mock_xonsh_env(xenv):
  8809. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8810. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8811.  
  8812. tests/test_parser.py:76: AttributeError
  8813. _____________________________________________________________________ test_redirect[14] ______________________________________________________________________
  8814.  
  8815. xenv = {}, inp = '$[echo "test" err> test.txt]', run = False, mode = 'eval'
  8816.  
  8817.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8818.         with mock_xonsh_env(xenv):
  8819. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8820. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8821.  
  8822. tests/test_parser.py:76: AttributeError
  8823. _____________________________________________________________________ test_redirect[15] ______________________________________________________________________
  8824.  
  8825. xenv = {}, inp = '$[< input.txt echo "test" err> test.txt]', run = False, mode = 'eval'
  8826.  
  8827.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8828.         with mock_xonsh_env(xenv):
  8829. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8830. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8831.  
  8832. tests/test_parser.py:76: AttributeError
  8833. _____________________________________________________________________ test_redirect[16] ______________________________________________________________________
  8834.  
  8835. xenv = {}, inp = '$[echo "test" err> test.txt < input.txt]', run = False, mode = 'eval'
  8836.  
  8837.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8838.         with mock_xonsh_env(xenv):
  8839. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8840. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8841.  
  8842. tests/test_parser.py:76: AttributeError
  8843. _____________________________________________________________________ test_redirect[17] ______________________________________________________________________
  8844.  
  8845. xenv = {}, inp = '$[echo "test" e> test.txt]', run = False, mode = 'eval'
  8846.  
  8847.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8848.         with mock_xonsh_env(xenv):
  8849. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8850. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8851.  
  8852. tests/test_parser.py:76: AttributeError
  8853. _____________________________________________________________________ test_redirect[18] ______________________________________________________________________
  8854.  
  8855. xenv = {}, inp = '$[< input.txt echo "test" e> test.txt]', run = False, mode = 'eval'
  8856.  
  8857.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8858.         with mock_xonsh_env(xenv):
  8859. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8860. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8861.  
  8862. tests/test_parser.py:76: AttributeError
  8863. _____________________________________________________________________ test_redirect[19] ______________________________________________________________________
  8864.  
  8865. xenv = {}, inp = '$[echo "test" e> test.txt < input.txt]', run = False, mode = 'eval'
  8866.  
  8867.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8868.         with mock_xonsh_env(xenv):
  8869. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8870. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8871.  
  8872. tests/test_parser.py:76: AttributeError
  8873. _____________________________________________________________________ test_redirect[20] ______________________________________________________________________
  8874.  
  8875. xenv = {}, inp = '$[echo "test" 2> test.txt]', run = False, mode = 'eval'
  8876.  
  8877.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8878.         with mock_xonsh_env(xenv):
  8879. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8880. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8881.  
  8882. tests/test_parser.py:76: AttributeError
  8883. _____________________________________________________________________ test_redirect[21] ______________________________________________________________________
  8884.  
  8885. xenv = {}, inp = '$[< input.txt echo "test" 2> test.txt]', run = False, mode = 'eval'
  8886.  
  8887.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8888.         with mock_xonsh_env(xenv):
  8889. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8890. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8891.  
  8892. tests/test_parser.py:76: AttributeError
  8893. _____________________________________________________________________ test_redirect[22] ______________________________________________________________________
  8894.  
  8895. xenv = {}, inp = '$[echo "test" 2> test.txt < input.txt]', run = False, mode = 'eval'
  8896.  
  8897.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8898.         with mock_xonsh_env(xenv):
  8899. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8900. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8901.  
  8902. tests/test_parser.py:76: AttributeError
  8903. _____________________________________________________________________ test_redirect[23] ______________________________________________________________________
  8904.  
  8905. xenv = {}, inp = '$[echo "test" a> test.txt]', run = False, mode = 'eval'
  8906.  
  8907.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8908.         with mock_xonsh_env(xenv):
  8909. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8910. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8911.  
  8912. tests/test_parser.py:76: AttributeError
  8913. _____________________________________________________________________ test_redirect[24] ______________________________________________________________________
  8914.  
  8915. xenv = {}, inp = '$[< input.txt echo "test" a> test.txt]', run = False, mode = 'eval'
  8916.  
  8917.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8918.         with mock_xonsh_env(xenv):
  8919. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8920. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8921.  
  8922. tests/test_parser.py:76: AttributeError
  8923. _____________________________________________________________________ test_redirect[25] ______________________________________________________________________
  8924.  
  8925. xenv = {}, inp = '$[echo "test" a> test.txt < input.txt]', run = False, mode = 'eval'
  8926.  
  8927.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8928.         with mock_xonsh_env(xenv):
  8929. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8930. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8931.  
  8932. tests/test_parser.py:76: AttributeError
  8933. _____________________________________________________________________ test_redirect[26] ______________________________________________________________________
  8934.  
  8935. xenv = {}, inp = '$[echo "test" all> test.txt]', run = False, mode = 'eval'
  8936.  
  8937.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8938.         with mock_xonsh_env(xenv):
  8939. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8940. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8941.  
  8942. tests/test_parser.py:76: AttributeError
  8943. _____________________________________________________________________ test_redirect[27] ______________________________________________________________________
  8944.  
  8945. xenv = {}, inp = '$[< input.txt echo "test" all> test.txt]', run = False, mode = 'eval'
  8946.  
  8947.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8948.         with mock_xonsh_env(xenv):
  8949. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8950. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8951.  
  8952. tests/test_parser.py:76: AttributeError
  8953. _____________________________________________________________________ test_redirect[28] ______________________________________________________________________
  8954.  
  8955. xenv = {}, inp = '$[echo "test" all> test.txt < input.txt]', run = False, mode = 'eval'
  8956.  
  8957.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8958.         with mock_xonsh_env(xenv):
  8959. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8960. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8961.  
  8962. tests/test_parser.py:76: AttributeError
  8963. _____________________________________________________________________ test_redirect[29] ______________________________________________________________________
  8964.  
  8965. xenv = {}, inp = '$[echo "test" &> test.txt]', run = False, mode = 'eval'
  8966.  
  8967.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8968.         with mock_xonsh_env(xenv):
  8969. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8970. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8971.  
  8972. tests/test_parser.py:76: AttributeError
  8973. _____________________________________________________________________ test_redirect[30] ______________________________________________________________________
  8974.  
  8975. xenv = {}, inp = '$[< input.txt echo "test" &> test.txt]', run = False, mode = 'eval'
  8976.  
  8977.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8978.         with mock_xonsh_env(xenv):
  8979. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8980. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8981.  
  8982. tests/test_parser.py:76: AttributeError
  8983. _____________________________________________________________________ test_redirect[31] ______________________________________________________________________
  8984.  
  8985. xenv = {}, inp = '$[echo "test" &> test.txt < input.txt]', run = False, mode = 'eval'
  8986.  
  8987.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8988.         with mock_xonsh_env(xenv):
  8989. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  8990. E           AttributeError: 'NoneType' object has no attribute 'parse'
  8991.  
  8992. tests/test_parser.py:76: AttributeError
  8993. _____________________________________________________________________ test_redirect[32] ______________________________________________________________________
  8994.  
  8995. xenv = {}, inp = '$[echo "test" err>1 > test.txt]', run = False, mode = 'eval'
  8996.  
  8997.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  8998.         with mock_xonsh_env(xenv):
  8999. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9000. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9001.  
  9002. tests/test_parser.py:76: AttributeError
  9003. _____________________________________________________________________ test_redirect[33] ______________________________________________________________________
  9004.  
  9005. xenv = {}, inp = '$[< input.txt echo "test" err>1 > test.txt]', run = False, mode = 'eval'
  9006.  
  9007.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9008.         with mock_xonsh_env(xenv):
  9009. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9010. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9011.  
  9012. tests/test_parser.py:76: AttributeError
  9013. _____________________________________________________________________ test_redirect[34] ______________________________________________________________________
  9014.  
  9015. xenv = {}, inp = '$[echo "test" err>1 > test.txt < input.txt]', run = False, mode = 'eval'
  9016.  
  9017.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9018.         with mock_xonsh_env(xenv):
  9019. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9020. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9021.  
  9022. tests/test_parser.py:76: AttributeError
  9023. _____________________________________________________________________ test_redirect[35] ______________________________________________________________________
  9024.  
  9025. xenv = {}, inp = '$[echo "test" err>1 1> test.txt]', run = False, mode = 'eval'
  9026.  
  9027.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9028.         with mock_xonsh_env(xenv):
  9029. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9030. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9031.  
  9032. tests/test_parser.py:76: AttributeError
  9033. _____________________________________________________________________ test_redirect[36] ______________________________________________________________________
  9034.  
  9035. xenv = {}, inp = '$[< input.txt echo "test" err>1 1> test.txt]', run = False, mode = 'eval'
  9036.  
  9037.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9038.         with mock_xonsh_env(xenv):
  9039. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9040. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9041.  
  9042. tests/test_parser.py:76: AttributeError
  9043. _____________________________________________________________________ test_redirect[37] ______________________________________________________________________
  9044.  
  9045. xenv = {}, inp = '$[echo "test" err>1 1> test.txt < input.txt]', run = False, mode = 'eval'
  9046.  
  9047.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9048.         with mock_xonsh_env(xenv):
  9049. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9050. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9051.  
  9052. tests/test_parser.py:76: AttributeError
  9053. _____________________________________________________________________ test_redirect[38] ______________________________________________________________________
  9054.  
  9055. xenv = {}, inp = '$[echo "test" err>1 o> test.txt]', run = False, mode = 'eval'
  9056.  
  9057.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9058.         with mock_xonsh_env(xenv):
  9059. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9060. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9061.  
  9062. tests/test_parser.py:76: AttributeError
  9063. _____________________________________________________________________ test_redirect[39] ______________________________________________________________________
  9064.  
  9065. xenv = {}, inp = '$[< input.txt echo "test" err>1 o> test.txt]', run = False, mode = 'eval'
  9066.  
  9067.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9068.         with mock_xonsh_env(xenv):
  9069. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9070. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9071.  
  9072. tests/test_parser.py:76: AttributeError
  9073. _____________________________________________________________________ test_redirect[40] ______________________________________________________________________
  9074.  
  9075. xenv = {}, inp = '$[echo "test" err>1 o> test.txt < input.txt]', run = False, mode = 'eval'
  9076.  
  9077.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9078.         with mock_xonsh_env(xenv):
  9079. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9080. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9081.  
  9082. tests/test_parser.py:76: AttributeError
  9083. _____________________________________________________________________ test_redirect[41] ______________________________________________________________________
  9084.  
  9085. xenv = {}, inp = '$[echo "test" err>1 out> test.txt]', run = False, mode = 'eval'
  9086.  
  9087.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9088.         with mock_xonsh_env(xenv):
  9089. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9090. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9091.  
  9092. tests/test_parser.py:76: AttributeError
  9093. _____________________________________________________________________ test_redirect[42] ______________________________________________________________________
  9094.  
  9095. xenv = {}, inp = '$[< input.txt echo "test" err>1 out> test.txt]', run = False, mode = 'eval'
  9096.  
  9097.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9098.         with mock_xonsh_env(xenv):
  9099. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9100. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9101.  
  9102. tests/test_parser.py:76: AttributeError
  9103. _____________________________________________________________________ test_redirect[43] ______________________________________________________________________
  9104.  
  9105. xenv = {}, inp = '$[echo "test" err>1 out> test.txt < input.txt]', run = False, mode = 'eval'
  9106.  
  9107.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9108.         with mock_xonsh_env(xenv):
  9109. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9110. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9111.  
  9112. tests/test_parser.py:76: AttributeError
  9113. _____________________________________________________________________ test_redirect[44] ______________________________________________________________________
  9114.  
  9115. xenv = {}, inp = '$[echo "test" 2>&1 > test.txt]', run = False, mode = 'eval'
  9116.  
  9117.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9118.         with mock_xonsh_env(xenv):
  9119. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9120. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9121.  
  9122. tests/test_parser.py:76: AttributeError
  9123. _____________________________________________________________________ test_redirect[45] ______________________________________________________________________
  9124.  
  9125. xenv = {}, inp = '$[< input.txt echo "test" 2>&1 > test.txt]', run = False, mode = 'eval'
  9126.  
  9127.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9128.         with mock_xonsh_env(xenv):
  9129. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9130. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9131.  
  9132. tests/test_parser.py:76: AttributeError
  9133. _____________________________________________________________________ test_redirect[46] ______________________________________________________________________
  9134.  
  9135. xenv = {}, inp = '$[echo "test" 2>&1 > test.txt < input.txt]', run = False, mode = 'eval'
  9136.  
  9137.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9138.         with mock_xonsh_env(xenv):
  9139. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9140. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9141.  
  9142. tests/test_parser.py:76: AttributeError
  9143. _____________________________________________________________________ test_redirect[47] ______________________________________________________________________
  9144.  
  9145. xenv = {}, inp = '$[echo "test" 2>&1 1> test.txt]', run = False, mode = 'eval'
  9146.  
  9147.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9148.         with mock_xonsh_env(xenv):
  9149. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9150. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9151.  
  9152. tests/test_parser.py:76: AttributeError
  9153. _____________________________________________________________________ test_redirect[48] ______________________________________________________________________
  9154.  
  9155. xenv = {}, inp = '$[< input.txt echo "test" 2>&1 1> test.txt]', run = False, mode = 'eval'
  9156.  
  9157.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9158.         with mock_xonsh_env(xenv):
  9159. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9160. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9161.  
  9162. tests/test_parser.py:76: AttributeError
  9163. _____________________________________________________________________ test_redirect[49] ______________________________________________________________________
  9164.  
  9165. xenv = {}, inp = '$[echo "test" 2>&1 1> test.txt < input.txt]', run = False, mode = 'eval'
  9166.  
  9167.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9168.         with mock_xonsh_env(xenv):
  9169. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9170. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9171.  
  9172. tests/test_parser.py:76: AttributeError
  9173. _____________________________________________________________________ test_redirect[50] ______________________________________________________________________
  9174.  
  9175. xenv = {}, inp = '$[echo "test" 2>&1 o> test.txt]', run = False, mode = 'eval'
  9176.  
  9177.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9178.         with mock_xonsh_env(xenv):
  9179. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9180. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9181.  
  9182. tests/test_parser.py:76: AttributeError
  9183. _____________________________________________________________________ test_redirect[51] ______________________________________________________________________
  9184.  
  9185. xenv = {}, inp = '$[< input.txt echo "test" 2>&1 o> test.txt]', run = False, mode = 'eval'
  9186.  
  9187.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9188.         with mock_xonsh_env(xenv):
  9189. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9190. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9191.  
  9192. tests/test_parser.py:76: AttributeError
  9193. _____________________________________________________________________ test_redirect[52] ______________________________________________________________________
  9194.  
  9195. xenv = {}, inp = '$[echo "test" 2>&1 o> test.txt < input.txt]', run = False, mode = 'eval'
  9196.  
  9197.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9198.         with mock_xonsh_env(xenv):
  9199. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9200. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9201.  
  9202. tests/test_parser.py:76: AttributeError
  9203. _____________________________________________________________________ test_redirect[53] ______________________________________________________________________
  9204.  
  9205. xenv = {}, inp = '$[echo "test" 2>&1 out> test.txt]', run = False, mode = 'eval'
  9206.  
  9207.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9208.         with mock_xonsh_env(xenv):
  9209. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9210. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9211.  
  9212. tests/test_parser.py:76: AttributeError
  9213. _____________________________________________________________________ test_redirect[54] ______________________________________________________________________
  9214.  
  9215. xenv = {}, inp = '$[< input.txt echo "test" 2>&1 out> test.txt]', run = False, mode = 'eval'
  9216.  
  9217.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9218.         with mock_xonsh_env(xenv):
  9219. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9220. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9221.  
  9222. tests/test_parser.py:76: AttributeError
  9223. _____________________________________________________________________ test_redirect[55] ______________________________________________________________________
  9224.  
  9225. xenv = {}, inp = '$[echo "test" 2>&1 out> test.txt < input.txt]', run = False, mode = 'eval'
  9226.  
  9227.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9228.         with mock_xonsh_env(xenv):
  9229. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9230. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9231.  
  9232. tests/test_parser.py:76: AttributeError
  9233. _____________________________________________________________________ test_redirect[56] ______________________________________________________________________
  9234.  
  9235. xenv = {}, inp = '$[echo "test" 2>out > test.txt]', run = False, mode = 'eval'
  9236.  
  9237.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9238.         with mock_xonsh_env(xenv):
  9239. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9240. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9241.  
  9242. tests/test_parser.py:76: AttributeError
  9243. _____________________________________________________________________ test_redirect[57] ______________________________________________________________________
  9244.  
  9245. xenv = {}, inp = '$[< input.txt echo "test" 2>out > test.txt]', run = False, mode = 'eval'
  9246.  
  9247.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9248.         with mock_xonsh_env(xenv):
  9249. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9250. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9251.  
  9252. tests/test_parser.py:76: AttributeError
  9253. _____________________________________________________________________ test_redirect[58] ______________________________________________________________________
  9254.  
  9255. xenv = {}, inp = '$[echo "test" 2>out > test.txt < input.txt]', run = False, mode = 'eval'
  9256.  
  9257.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9258.         with mock_xonsh_env(xenv):
  9259. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9260. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9261.  
  9262. tests/test_parser.py:76: AttributeError
  9263. _____________________________________________________________________ test_redirect[59] ______________________________________________________________________
  9264.  
  9265. xenv = {}, inp = '$[echo "test" 2>out 1> test.txt]', run = False, mode = 'eval'
  9266.  
  9267.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9268.         with mock_xonsh_env(xenv):
  9269. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9270. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9271.  
  9272. tests/test_parser.py:76: AttributeError
  9273. _____________________________________________________________________ test_redirect[60] ______________________________________________________________________
  9274.  
  9275. xenv = {}, inp = '$[< input.txt echo "test" 2>out 1> test.txt]', run = False, mode = 'eval'
  9276.  
  9277.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9278.         with mock_xonsh_env(xenv):
  9279. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9280. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9281.  
  9282. tests/test_parser.py:76: AttributeError
  9283. _____________________________________________________________________ test_redirect[61] ______________________________________________________________________
  9284.  
  9285. xenv = {}, inp = '$[echo "test" 2>out 1> test.txt < input.txt]', run = False, mode = 'eval'
  9286.  
  9287.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9288.         with mock_xonsh_env(xenv):
  9289. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9290. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9291.  
  9292. tests/test_parser.py:76: AttributeError
  9293. _____________________________________________________________________ test_redirect[62] ______________________________________________________________________
  9294.  
  9295. xenv = {}, inp = '$[echo "test" 2>out o> test.txt]', run = False, mode = 'eval'
  9296.  
  9297.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9298.         with mock_xonsh_env(xenv):
  9299. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9300. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9301.  
  9302. tests/test_parser.py:76: AttributeError
  9303. _____________________________________________________________________ test_redirect[63] ______________________________________________________________________
  9304.  
  9305. xenv = {}, inp = '$[< input.txt echo "test" 2>out o> test.txt]', run = False, mode = 'eval'
  9306.  
  9307.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9308.         with mock_xonsh_env(xenv):
  9309. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9310. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9311.  
  9312. tests/test_parser.py:76: AttributeError
  9313. _____________________________________________________________________ test_redirect[64] ______________________________________________________________________
  9314.  
  9315. xenv = {}, inp = '$[echo "test" 2>out o> test.txt < input.txt]', run = False, mode = 'eval'
  9316.  
  9317.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9318.         with mock_xonsh_env(xenv):
  9319. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9320. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9321.  
  9322. tests/test_parser.py:76: AttributeError
  9323. _____________________________________________________________________ test_redirect[65] ______________________________________________________________________
  9324.  
  9325. xenv = {}, inp = '$[echo "test" 2>out out> test.txt]', run = False, mode = 'eval'
  9326.  
  9327.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9328.         with mock_xonsh_env(xenv):
  9329. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9330. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9331.  
  9332. tests/test_parser.py:76: AttributeError
  9333. _____________________________________________________________________ test_redirect[66] ______________________________________________________________________
  9334.  
  9335. xenv = {}, inp = '$[< input.txt echo "test" 2>out out> test.txt]', run = False, mode = 'eval'
  9336.  
  9337.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9338.         with mock_xonsh_env(xenv):
  9339. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9340. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9341.  
  9342. tests/test_parser.py:76: AttributeError
  9343. _____________________________________________________________________ test_redirect[67] ______________________________________________________________________
  9344.  
  9345. xenv = {}, inp = '$[echo "test" 2>out out> test.txt < input.txt]', run = False, mode = 'eval'
  9346.  
  9347.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9348.         with mock_xonsh_env(xenv):
  9349. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9350. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9351.  
  9352. tests/test_parser.py:76: AttributeError
  9353. _____________________________________________________________________ test_redirect[68] ______________________________________________________________________
  9354.  
  9355. xenv = {}, inp = '$[echo "test" 2>o > test.txt]', run = False, mode = 'eval'
  9356.  
  9357.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9358.         with mock_xonsh_env(xenv):
  9359. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9360. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9361.  
  9362. tests/test_parser.py:76: AttributeError
  9363. _____________________________________________________________________ test_redirect[69] ______________________________________________________________________
  9364.  
  9365. xenv = {}, inp = '$[< input.txt echo "test" 2>o > test.txt]', run = False, mode = 'eval'
  9366.  
  9367.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9368.         with mock_xonsh_env(xenv):
  9369. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9370. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9371.  
  9372. tests/test_parser.py:76: AttributeError
  9373. _____________________________________________________________________ test_redirect[70] ______________________________________________________________________
  9374.  
  9375. xenv = {}, inp = '$[echo "test" 2>o > test.txt < input.txt]', run = False, mode = 'eval'
  9376.  
  9377.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9378.         with mock_xonsh_env(xenv):
  9379. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9380. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9381.  
  9382. tests/test_parser.py:76: AttributeError
  9383. _____________________________________________________________________ test_redirect[71] ______________________________________________________________________
  9384.  
  9385. xenv = {}, inp = '$[echo "test" 2>o 1> test.txt]', run = False, mode = 'eval'
  9386.  
  9387.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9388.         with mock_xonsh_env(xenv):
  9389. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9390. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9391.  
  9392. tests/test_parser.py:76: AttributeError
  9393. _____________________________________________________________________ test_redirect[72] ______________________________________________________________________
  9394.  
  9395. xenv = {}, inp = '$[< input.txt echo "test" 2>o 1> test.txt]', run = False, mode = 'eval'
  9396.  
  9397.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9398.         with mock_xonsh_env(xenv):
  9399. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9400. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9401.  
  9402. tests/test_parser.py:76: AttributeError
  9403. _____________________________________________________________________ test_redirect[73] ______________________________________________________________________
  9404.  
  9405. xenv = {}, inp = '$[echo "test" 2>o 1> test.txt < input.txt]', run = False, mode = 'eval'
  9406.  
  9407.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9408.         with mock_xonsh_env(xenv):
  9409. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9410. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9411.  
  9412. tests/test_parser.py:76: AttributeError
  9413. _____________________________________________________________________ test_redirect[74] ______________________________________________________________________
  9414.  
  9415. xenv = {}, inp = '$[echo "test" 2>o o> test.txt]', run = False, mode = 'eval'
  9416.  
  9417.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9418.         with mock_xonsh_env(xenv):
  9419. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9420. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9421.  
  9422. tests/test_parser.py:76: AttributeError
  9423. _____________________________________________________________________ test_redirect[75] ______________________________________________________________________
  9424.  
  9425. xenv = {}, inp = '$[< input.txt echo "test" 2>o o> test.txt]', run = False, mode = 'eval'
  9426.  
  9427.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9428.         with mock_xonsh_env(xenv):
  9429. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9430. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9431.  
  9432. tests/test_parser.py:76: AttributeError
  9433. _____________________________________________________________________ test_redirect[76] ______________________________________________________________________
  9434.  
  9435. xenv = {}, inp = '$[echo "test" 2>o o> test.txt < input.txt]', run = False, mode = 'eval'
  9436.  
  9437.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9438.         with mock_xonsh_env(xenv):
  9439. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9440. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9441.  
  9442. tests/test_parser.py:76: AttributeError
  9443. _____________________________________________________________________ test_redirect[77] ______________________________________________________________________
  9444.  
  9445. xenv = {}, inp = '$[echo "test" 2>o out> test.txt]', run = False, mode = 'eval'
  9446.  
  9447.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9448.         with mock_xonsh_env(xenv):
  9449. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9450. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9451.  
  9452. tests/test_parser.py:76: AttributeError
  9453. _____________________________________________________________________ test_redirect[78] ______________________________________________________________________
  9454.  
  9455. xenv = {}, inp = '$[< input.txt echo "test" 2>o out> test.txt]', run = False, mode = 'eval'
  9456.  
  9457.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9458.         with mock_xonsh_env(xenv):
  9459. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9460. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9461.  
  9462. tests/test_parser.py:76: AttributeError
  9463. _____________________________________________________________________ test_redirect[79] ______________________________________________________________________
  9464.  
  9465. xenv = {}, inp = '$[echo "test" 2>o out> test.txt < input.txt]', run = False, mode = 'eval'
  9466.  
  9467.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9468.         with mock_xonsh_env(xenv):
  9469. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9470. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9471.  
  9472. tests/test_parser.py:76: AttributeError
  9473. _____________________________________________________________________ test_redirect[80] ______________________________________________________________________
  9474.  
  9475. xenv = {}, inp = '$[echo "test" e>1 > test.txt]', run = False, mode = 'eval'
  9476.  
  9477.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9478.         with mock_xonsh_env(xenv):
  9479. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9480. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9481.  
  9482. tests/test_parser.py:76: AttributeError
  9483. _____________________________________________________________________ test_redirect[81] ______________________________________________________________________
  9484.  
  9485. xenv = {}, inp = '$[< input.txt echo "test" e>1 > test.txt]', run = False, mode = 'eval'
  9486.  
  9487.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9488.         with mock_xonsh_env(xenv):
  9489. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9490. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9491.  
  9492. tests/test_parser.py:76: AttributeError
  9493. _____________________________________________________________________ test_redirect[82] ______________________________________________________________________
  9494.  
  9495. xenv = {}, inp = '$[echo "test" e>1 > test.txt < input.txt]', run = False, mode = 'eval'
  9496.  
  9497.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9498.         with mock_xonsh_env(xenv):
  9499. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9500. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9501.  
  9502. tests/test_parser.py:76: AttributeError
  9503. _____________________________________________________________________ test_redirect[83] ______________________________________________________________________
  9504.  
  9505. xenv = {}, inp = '$[echo "test" e>1 1> test.txt]', run = False, mode = 'eval'
  9506.  
  9507.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9508.         with mock_xonsh_env(xenv):
  9509. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9510. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9511.  
  9512. tests/test_parser.py:76: AttributeError
  9513. _____________________________________________________________________ test_redirect[84] ______________________________________________________________________
  9514.  
  9515. xenv = {}, inp = '$[< input.txt echo "test" e>1 1> test.txt]', run = False, mode = 'eval'
  9516.  
  9517.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9518.         with mock_xonsh_env(xenv):
  9519. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9520. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9521.  
  9522. tests/test_parser.py:76: AttributeError
  9523. _____________________________________________________________________ test_redirect[85] ______________________________________________________________________
  9524.  
  9525. xenv = {}, inp = '$[echo "test" e>1 1> test.txt < input.txt]', run = False, mode = 'eval'
  9526.  
  9527.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9528.         with mock_xonsh_env(xenv):
  9529. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9530. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9531.  
  9532. tests/test_parser.py:76: AttributeError
  9533. _____________________________________________________________________ test_redirect[86] ______________________________________________________________________
  9534.  
  9535. xenv = {}, inp = '$[echo "test" e>1 o> test.txt]', run = False, mode = 'eval'
  9536.  
  9537.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9538.         with mock_xonsh_env(xenv):
  9539. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9540. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9541.  
  9542. tests/test_parser.py:76: AttributeError
  9543. _____________________________________________________________________ test_redirect[87] ______________________________________________________________________
  9544.  
  9545. xenv = {}, inp = '$[< input.txt echo "test" e>1 o> test.txt]', run = False, mode = 'eval'
  9546.  
  9547.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9548.         with mock_xonsh_env(xenv):
  9549. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9550. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9551.  
  9552. tests/test_parser.py:76: AttributeError
  9553. _____________________________________________________________________ test_redirect[88] ______________________________________________________________________
  9554.  
  9555. xenv = {}, inp = '$[echo "test" e>1 o> test.txt < input.txt]', run = False, mode = 'eval'
  9556.  
  9557.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9558.         with mock_xonsh_env(xenv):
  9559. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9560. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9561.  
  9562. tests/test_parser.py:76: AttributeError
  9563. _____________________________________________________________________ test_redirect[89] ______________________________________________________________________
  9564.  
  9565. xenv = {}, inp = '$[echo "test" e>1 out> test.txt]', run = False, mode = 'eval'
  9566.  
  9567.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9568.         with mock_xonsh_env(xenv):
  9569. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9570. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9571.  
  9572. tests/test_parser.py:76: AttributeError
  9573. _____________________________________________________________________ test_redirect[90] ______________________________________________________________________
  9574.  
  9575. xenv = {}, inp = '$[< input.txt echo "test" e>1 out> test.txt]', run = False, mode = 'eval'
  9576.  
  9577.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9578.         with mock_xonsh_env(xenv):
  9579. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9580. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9581.  
  9582. tests/test_parser.py:76: AttributeError
  9583. _____________________________________________________________________ test_redirect[91] ______________________________________________________________________
  9584.  
  9585. xenv = {}, inp = '$[echo "test" e>1 out> test.txt < input.txt]', run = False, mode = 'eval'
  9586.  
  9587.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9588.         with mock_xonsh_env(xenv):
  9589. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9590. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9591.  
  9592. tests/test_parser.py:76: AttributeError
  9593. _____________________________________________________________________ test_redirect[92] ______________________________________________________________________
  9594.  
  9595. xenv = {}, inp = '$[echo "test" e>&1 > test.txt]', run = False, mode = 'eval'
  9596.  
  9597.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9598.         with mock_xonsh_env(xenv):
  9599. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9600. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9601.  
  9602. tests/test_parser.py:76: AttributeError
  9603. _____________________________________________________________________ test_redirect[93] ______________________________________________________________________
  9604.  
  9605. xenv = {}, inp = '$[< input.txt echo "test" e>&1 > test.txt]', run = False, mode = 'eval'
  9606.  
  9607.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9608.         with mock_xonsh_env(xenv):
  9609. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9610. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9611.  
  9612. tests/test_parser.py:76: AttributeError
  9613. _____________________________________________________________________ test_redirect[94] ______________________________________________________________________
  9614.  
  9615. xenv = {}, inp = '$[echo "test" e>&1 > test.txt < input.txt]', run = False, mode = 'eval'
  9616.  
  9617.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9618.         with mock_xonsh_env(xenv):
  9619. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9620. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9621.  
  9622. tests/test_parser.py:76: AttributeError
  9623. _____________________________________________________________________ test_redirect[95] ______________________________________________________________________
  9624.  
  9625. xenv = {}, inp = '$[echo "test" e>&1 1> test.txt]', run = False, mode = 'eval'
  9626.  
  9627.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9628.         with mock_xonsh_env(xenv):
  9629. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9630. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9631.  
  9632. tests/test_parser.py:76: AttributeError
  9633. _____________________________________________________________________ test_redirect[96] ______________________________________________________________________
  9634.  
  9635. xenv = {}, inp = '$[< input.txt echo "test" e>&1 1> test.txt]', run = False, mode = 'eval'
  9636.  
  9637.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9638.         with mock_xonsh_env(xenv):
  9639. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9640. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9641.  
  9642. tests/test_parser.py:76: AttributeError
  9643. _____________________________________________________________________ test_redirect[97] ______________________________________________________________________
  9644.  
  9645. xenv = {}, inp = '$[echo "test" e>&1 1> test.txt < input.txt]', run = False, mode = 'eval'
  9646.  
  9647.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9648.         with mock_xonsh_env(xenv):
  9649. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9650. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9651.  
  9652. tests/test_parser.py:76: AttributeError
  9653. _____________________________________________________________________ test_redirect[98] ______________________________________________________________________
  9654.  
  9655. xenv = {}, inp = '$[echo "test" e>&1 o> test.txt]', run = False, mode = 'eval'
  9656.  
  9657.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9658.         with mock_xonsh_env(xenv):
  9659. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9660. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9661.  
  9662. tests/test_parser.py:76: AttributeError
  9663. _____________________________________________________________________ test_redirect[99] ______________________________________________________________________
  9664.  
  9665. xenv = {}, inp = '$[< input.txt echo "test" e>&1 o> test.txt]', run = False, mode = 'eval'
  9666.  
  9667.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9668.         with mock_xonsh_env(xenv):
  9669. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9670. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9671.  
  9672. tests/test_parser.py:76: AttributeError
  9673. _____________________________________________________________________ test_redirect[100] _____________________________________________________________________
  9674.  
  9675. xenv = {}, inp = '$[echo "test" e>&1 o> test.txt < input.txt]', run = False, mode = 'eval'
  9676.  
  9677.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9678.         with mock_xonsh_env(xenv):
  9679. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9680. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9681.  
  9682. tests/test_parser.py:76: AttributeError
  9683. _____________________________________________________________________ test_redirect[101] _____________________________________________________________________
  9684.  
  9685. xenv = {}, inp = '$[echo "test" e>&1 out> test.txt]', run = False, mode = 'eval'
  9686.  
  9687.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9688.         with mock_xonsh_env(xenv):
  9689. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9690. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9691.  
  9692. tests/test_parser.py:76: AttributeError
  9693. _____________________________________________________________________ test_redirect[102] _____________________________________________________________________
  9694.  
  9695. xenv = {}, inp = '$[< input.txt echo "test" e>&1 out> test.txt]', run = False, mode = 'eval'
  9696.  
  9697.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9698.         with mock_xonsh_env(xenv):
  9699. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9700. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9701.  
  9702. tests/test_parser.py:76: AttributeError
  9703. _____________________________________________________________________ test_redirect[103] _____________________________________________________________________
  9704.  
  9705. xenv = {}, inp = '$[echo "test" e>&1 out> test.txt < input.txt]', run = False, mode = 'eval'
  9706.  
  9707.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9708.         with mock_xonsh_env(xenv):
  9709. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9710. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9711.  
  9712. tests/test_parser.py:76: AttributeError
  9713. _____________________________________________________________________ test_redirect[104] _____________________________________________________________________
  9714.  
  9715. xenv = {}, inp = '$[echo "test" err>&1 > test.txt]', run = False, mode = 'eval'
  9716.  
  9717.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9718.         with mock_xonsh_env(xenv):
  9719. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9720. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9721.  
  9722. tests/test_parser.py:76: AttributeError
  9723. _____________________________________________________________________ test_redirect[105] _____________________________________________________________________
  9724.  
  9725. xenv = {}, inp = '$[< input.txt echo "test" err>&1 > test.txt]', run = False, mode = 'eval'
  9726.  
  9727.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9728.         with mock_xonsh_env(xenv):
  9729. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9730. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9731.  
  9732. tests/test_parser.py:76: AttributeError
  9733. _____________________________________________________________________ test_redirect[106] _____________________________________________________________________
  9734.  
  9735. xenv = {}, inp = '$[echo "test" err>&1 > test.txt < input.txt]', run = False, mode = 'eval'
  9736.  
  9737.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9738.         with mock_xonsh_env(xenv):
  9739. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9740. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9741.  
  9742. tests/test_parser.py:76: AttributeError
  9743. _____________________________________________________________________ test_redirect[107] _____________________________________________________________________
  9744.  
  9745. xenv = {}, inp = '$[echo "test" err>&1 1> test.txt]', run = False, mode = 'eval'
  9746.  
  9747.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9748.         with mock_xonsh_env(xenv):
  9749. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9750. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9751.  
  9752. tests/test_parser.py:76: AttributeError
  9753. _____________________________________________________________________ test_redirect[108] _____________________________________________________________________
  9754.  
  9755. xenv = {}, inp = '$[< input.txt echo "test" err>&1 1> test.txt]', run = False, mode = 'eval'
  9756.  
  9757.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9758.         with mock_xonsh_env(xenv):
  9759. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9760. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9761.  
  9762. tests/test_parser.py:76: AttributeError
  9763. _____________________________________________________________________ test_redirect[109] _____________________________________________________________________
  9764.  
  9765. xenv = {}, inp = '$[echo "test" err>&1 1> test.txt < input.txt]', run = False, mode = 'eval'
  9766.  
  9767.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9768.         with mock_xonsh_env(xenv):
  9769. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9770. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9771.  
  9772. tests/test_parser.py:76: AttributeError
  9773. _____________________________________________________________________ test_redirect[110] _____________________________________________________________________
  9774.  
  9775. xenv = {}, inp = '$[echo "test" err>&1 o> test.txt]', run = False, mode = 'eval'
  9776.  
  9777.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9778.         with mock_xonsh_env(xenv):
  9779. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9780. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9781.  
  9782. tests/test_parser.py:76: AttributeError
  9783. _____________________________________________________________________ test_redirect[111] _____________________________________________________________________
  9784.  
  9785. xenv = {}, inp = '$[< input.txt echo "test" err>&1 o> test.txt]', run = False, mode = 'eval'
  9786.  
  9787.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9788.         with mock_xonsh_env(xenv):
  9789. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9790. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9791.  
  9792. tests/test_parser.py:76: AttributeError
  9793. _____________________________________________________________________ test_redirect[112] _____________________________________________________________________
  9794.  
  9795. xenv = {}, inp = '$[echo "test" err>&1 o> test.txt < input.txt]', run = False, mode = 'eval'
  9796.  
  9797.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9798.         with mock_xonsh_env(xenv):
  9799. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9800. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9801.  
  9802. tests/test_parser.py:76: AttributeError
  9803. _____________________________________________________________________ test_redirect[113] _____________________________________________________________________
  9804.  
  9805. xenv = {}, inp = '$[echo "test" err>&1 out> test.txt]', run = False, mode = 'eval'
  9806.  
  9807.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9808.         with mock_xonsh_env(xenv):
  9809. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9810. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9811.  
  9812. tests/test_parser.py:76: AttributeError
  9813. _____________________________________________________________________ test_redirect[114] _____________________________________________________________________
  9814.  
  9815. xenv = {}, inp = '$[< input.txt echo "test" err>&1 out> test.txt]', run = False, mode = 'eval'
  9816.  
  9817.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9818.         with mock_xonsh_env(xenv):
  9819. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9820. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9821.  
  9822. tests/test_parser.py:76: AttributeError
  9823. _____________________________________________________________________ test_redirect[115] _____________________________________________________________________
  9824.  
  9825. xenv = {}, inp = '$[echo "test" err>&1 out> test.txt < input.txt]', run = False, mode = 'eval'
  9826.  
  9827.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9828.         with mock_xonsh_env(xenv):
  9829. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9830. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9831.  
  9832. tests/test_parser.py:76: AttributeError
  9833. _____________________________________________________________________ test_redirect[116] _____________________________________________________________________
  9834.  
  9835. xenv = {}, inp = '$[echo "test" e>o > test.txt]', run = False, mode = 'eval'
  9836.  
  9837.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9838.         with mock_xonsh_env(xenv):
  9839. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9840. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9841.  
  9842. tests/test_parser.py:76: AttributeError
  9843. _____________________________________________________________________ test_redirect[117] _____________________________________________________________________
  9844.  
  9845. xenv = {}, inp = '$[< input.txt echo "test" e>o > test.txt]', run = False, mode = 'eval'
  9846.  
  9847.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9848.         with mock_xonsh_env(xenv):
  9849. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9850. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9851.  
  9852. tests/test_parser.py:76: AttributeError
  9853. _____________________________________________________________________ test_redirect[118] _____________________________________________________________________
  9854.  
  9855. xenv = {}, inp = '$[echo "test" e>o > test.txt < input.txt]', run = False, mode = 'eval'
  9856.  
  9857.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9858.         with mock_xonsh_env(xenv):
  9859. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9860. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9861.  
  9862. tests/test_parser.py:76: AttributeError
  9863. _____________________________________________________________________ test_redirect[119] _____________________________________________________________________
  9864.  
  9865. xenv = {}, inp = '$[echo "test" e>o 1> test.txt]', run = False, mode = 'eval'
  9866.  
  9867.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9868.         with mock_xonsh_env(xenv):
  9869. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9870. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9871.  
  9872. tests/test_parser.py:76: AttributeError
  9873. _____________________________________________________________________ test_redirect[120] _____________________________________________________________________
  9874.  
  9875. xenv = {}, inp = '$[< input.txt echo "test" e>o 1> test.txt]', run = False, mode = 'eval'
  9876.  
  9877.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9878.         with mock_xonsh_env(xenv):
  9879. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9880. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9881.  
  9882. tests/test_parser.py:76: AttributeError
  9883. _____________________________________________________________________ test_redirect[121] _____________________________________________________________________
  9884.  
  9885. xenv = {}, inp = '$[echo "test" e>o 1> test.txt < input.txt]', run = False, mode = 'eval'
  9886.  
  9887.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9888.         with mock_xonsh_env(xenv):
  9889. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9890. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9891.  
  9892. tests/test_parser.py:76: AttributeError
  9893. _____________________________________________________________________ test_redirect[122] _____________________________________________________________________
  9894.  
  9895. xenv = {}, inp = '$[echo "test" e>o o> test.txt]', run = False, mode = 'eval'
  9896.  
  9897.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9898.         with mock_xonsh_env(xenv):
  9899. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9900. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9901.  
  9902. tests/test_parser.py:76: AttributeError
  9903. _____________________________________________________________________ test_redirect[123] _____________________________________________________________________
  9904.  
  9905. xenv = {}, inp = '$[< input.txt echo "test" e>o o> test.txt]', run = False, mode = 'eval'
  9906.  
  9907.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9908.         with mock_xonsh_env(xenv):
  9909. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9910. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9911.  
  9912. tests/test_parser.py:76: AttributeError
  9913. _____________________________________________________________________ test_redirect[124] _____________________________________________________________________
  9914.  
  9915. xenv = {}, inp = '$[echo "test" e>o o> test.txt < input.txt]', run = False, mode = 'eval'
  9916.  
  9917.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9918.         with mock_xonsh_env(xenv):
  9919. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9920. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9921.  
  9922. tests/test_parser.py:76: AttributeError
  9923. _____________________________________________________________________ test_redirect[125] _____________________________________________________________________
  9924.  
  9925. xenv = {}, inp = '$[echo "test" e>o out> test.txt]', run = False, mode = 'eval'
  9926.  
  9927.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9928.         with mock_xonsh_env(xenv):
  9929. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9930. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9931.  
  9932. tests/test_parser.py:76: AttributeError
  9933. _____________________________________________________________________ test_redirect[126] _____________________________________________________________________
  9934.  
  9935. xenv = {}, inp = '$[< input.txt echo "test" e>o out> test.txt]', run = False, mode = 'eval'
  9936.  
  9937.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9938.         with mock_xonsh_env(xenv):
  9939. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9940. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9941.  
  9942. tests/test_parser.py:76: AttributeError
  9943. _____________________________________________________________________ test_redirect[127] _____________________________________________________________________
  9944.  
  9945. xenv = {}, inp = '$[echo "test" e>o out> test.txt < input.txt]', run = False, mode = 'eval'
  9946.  
  9947.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9948.         with mock_xonsh_env(xenv):
  9949. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9950. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9951.  
  9952. tests/test_parser.py:76: AttributeError
  9953. _____________________________________________________________________ test_redirect[128] _____________________________________________________________________
  9954.  
  9955. xenv = {}, inp = '$[echo "test" 2>1 > test.txt]', run = False, mode = 'eval'
  9956.  
  9957.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9958.         with mock_xonsh_env(xenv):
  9959. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9960. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9961.  
  9962. tests/test_parser.py:76: AttributeError
  9963. _____________________________________________________________________ test_redirect[129] _____________________________________________________________________
  9964.  
  9965. xenv = {}, inp = '$[< input.txt echo "test" 2>1 > test.txt]', run = False, mode = 'eval'
  9966.  
  9967.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9968.         with mock_xonsh_env(xenv):
  9969. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9970. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9971.  
  9972. tests/test_parser.py:76: AttributeError
  9973. _____________________________________________________________________ test_redirect[130] _____________________________________________________________________
  9974.  
  9975. xenv = {}, inp = '$[echo "test" 2>1 > test.txt < input.txt]', run = False, mode = 'eval'
  9976.  
  9977.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9978.         with mock_xonsh_env(xenv):
  9979. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9980. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9981.  
  9982. tests/test_parser.py:76: AttributeError
  9983. _____________________________________________________________________ test_redirect[131] _____________________________________________________________________
  9984.  
  9985. xenv = {}, inp = '$[echo "test" 2>1 1> test.txt]', run = False, mode = 'eval'
  9986.  
  9987.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9988.         with mock_xonsh_env(xenv):
  9989. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  9990. E           AttributeError: 'NoneType' object has no attribute 'parse'
  9991.  
  9992. tests/test_parser.py:76: AttributeError
  9993. _____________________________________________________________________ test_redirect[132] _____________________________________________________________________
  9994.  
  9995. xenv = {}, inp = '$[< input.txt echo "test" 2>1 1> test.txt]', run = False, mode = 'eval'
  9996.  
  9997.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  9998.         with mock_xonsh_env(xenv):
  9999. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10000. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10001.  
  10002. tests/test_parser.py:76: AttributeError
  10003. _____________________________________________________________________ test_redirect[133] _____________________________________________________________________
  10004.  
  10005. xenv = {}, inp = '$[echo "test" 2>1 1> test.txt < input.txt]', run = False, mode = 'eval'
  10006.  
  10007.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10008.         with mock_xonsh_env(xenv):
  10009. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10010. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10011.  
  10012. tests/test_parser.py:76: AttributeError
  10013. _____________________________________________________________________ test_redirect[134] _____________________________________________________________________
  10014.  
  10015. xenv = {}, inp = '$[echo "test" 2>1 o> test.txt]', run = False, mode = 'eval'
  10016.  
  10017.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10018.         with mock_xonsh_env(xenv):
  10019. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10020. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10021.  
  10022. tests/test_parser.py:76: AttributeError
  10023. _____________________________________________________________________ test_redirect[135] _____________________________________________________________________
  10024.  
  10025. xenv = {}, inp = '$[< input.txt echo "test" 2>1 o> test.txt]', run = False, mode = 'eval'
  10026.  
  10027.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10028.         with mock_xonsh_env(xenv):
  10029. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10030. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10031.  
  10032. tests/test_parser.py:76: AttributeError
  10033. _____________________________________________________________________ test_redirect[136] _____________________________________________________________________
  10034.  
  10035. xenv = {}, inp = '$[echo "test" 2>1 o> test.txt < input.txt]', run = False, mode = 'eval'
  10036.  
  10037.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10038.         with mock_xonsh_env(xenv):
  10039. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10040. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10041.  
  10042. tests/test_parser.py:76: AttributeError
  10043. _____________________________________________________________________ test_redirect[137] _____________________________________________________________________
  10044.  
  10045. xenv = {}, inp = '$[echo "test" 2>1 out> test.txt]', run = False, mode = 'eval'
  10046.  
  10047.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10048.         with mock_xonsh_env(xenv):
  10049. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10050. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10051.  
  10052. tests/test_parser.py:76: AttributeError
  10053. _____________________________________________________________________ test_redirect[138] _____________________________________________________________________
  10054.  
  10055. xenv = {}, inp = '$[< input.txt echo "test" 2>1 out> test.txt]', run = False, mode = 'eval'
  10056.  
  10057.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10058.         with mock_xonsh_env(xenv):
  10059. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10060. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10061.  
  10062. tests/test_parser.py:76: AttributeError
  10063. _____________________________________________________________________ test_redirect[139] _____________________________________________________________________
  10064.  
  10065. xenv = {}, inp = '$[echo "test" 2>1 out> test.txt < input.txt]', run = False, mode = 'eval'
  10066.  
  10067.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10068.         with mock_xonsh_env(xenv):
  10069. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10070. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10071.  
  10072. tests/test_parser.py:76: AttributeError
  10073. _____________________________________________________________________ test_redirect[140] _____________________________________________________________________
  10074.  
  10075. xenv = {}, inp = '$[echo "test" e>out > test.txt]', run = False, mode = 'eval'
  10076.  
  10077.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10078.         with mock_xonsh_env(xenv):
  10079. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10080. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10081.  
  10082. tests/test_parser.py:76: AttributeError
  10083. _____________________________________________________________________ test_redirect[141] _____________________________________________________________________
  10084.  
  10085. xenv = {}, inp = '$[< input.txt echo "test" e>out > test.txt]', run = False, mode = 'eval'
  10086.  
  10087.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10088.         with mock_xonsh_env(xenv):
  10089. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10090. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10091.  
  10092. tests/test_parser.py:76: AttributeError
  10093. _____________________________________________________________________ test_redirect[142] _____________________________________________________________________
  10094.  
  10095. xenv = {}, inp = '$[echo "test" e>out > test.txt < input.txt]', run = False, mode = 'eval'
  10096.  
  10097.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10098.         with mock_xonsh_env(xenv):
  10099. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10100. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10101.  
  10102. tests/test_parser.py:76: AttributeError
  10103. _____________________________________________________________________ test_redirect[143] _____________________________________________________________________
  10104.  
  10105. xenv = {}, inp = '$[echo "test" e>out 1> test.txt]', run = False, mode = 'eval'
  10106.  
  10107.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10108.         with mock_xonsh_env(xenv):
  10109. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10110. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10111.  
  10112. tests/test_parser.py:76: AttributeError
  10113. _____________________________________________________________________ test_redirect[144] _____________________________________________________________________
  10114.  
  10115. xenv = {}, inp = '$[< input.txt echo "test" e>out 1> test.txt]', run = False, mode = 'eval'
  10116.  
  10117.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10118.         with mock_xonsh_env(xenv):
  10119. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10120. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10121.  
  10122. tests/test_parser.py:76: AttributeError
  10123. _____________________________________________________________________ test_redirect[145] _____________________________________________________________________
  10124.  
  10125. xenv = {}, inp = '$[echo "test" e>out 1> test.txt < input.txt]', run = False, mode = 'eval'
  10126.  
  10127.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10128.         with mock_xonsh_env(xenv):
  10129. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10130. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10131.  
  10132. tests/test_parser.py:76: AttributeError
  10133. _____________________________________________________________________ test_redirect[146] _____________________________________________________________________
  10134.  
  10135. xenv = {}, inp = '$[echo "test" e>out o> test.txt]', run = False, mode = 'eval'
  10136.  
  10137.     def check_xonsh_ast(xenv, inp, run=True, mode='eval'):
  10138.         with mock_xonsh_env(xenv):
  10139. >           obs = PARSER.parse(inp, debug_level=DEBUG_LEVEL)
  10140. E           AttributeError: 'NoneType' object has no attribute 'parse'
  10141.  
  10142. tests/test_parser.py:76: AttributeError
  10143. _____________________________________________________________________ test_redirect[147] _____________________________________________________________________
  10144. &nbs