Repository URL to install this package:
|
Version:
1.0.11 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
pyparsing
/
__pycache__
/
testing.cpython-37.pyc
|
|---|
B
®*ã`ã @ sF d dl mZ d dlmZ ddlmZmZmZmZm Z G dd dZ
dS )é )Úcontextmanager)ÚOptionalé )Ú
ParserElementÚParseExceptionÚKeywordÚ__diag__Ú
__compat__c @ s^ e Zd ZdZG dd dZG dd dZedeee ee e
eee ee ed d
dZdS )
Úpyparsing_testzB
namespace class for classes useful in writing unit tests
c @ s@ e Zd ZdZdd Zdd Zdd Zdd Zd
d Zdd
Z dS )z&pyparsing_test.reset_pyparsing_contexta
Context manager to be used when writing unit tests that modify pyparsing config values:
- packrat parsing
- bounded recursion parsing
- default whitespace characters.
- default keyword characters
- literal string auto-conversion class
- __diag__ settings
Example::
with reset_pyparsing_context():
# test that literals used to construct a grammar are automatically suppressed
ParserElement.inlineLiteralsUsing(Suppress)
term = Word(alphas) | Word(nums)
group = Group('(' + term[...] + ')')
# assert that the '()' characters are not included in the parsed tokens
self.assertParseAndCheckList(group, "(abc 123 def)", ['abc', '123', 'def'])
# after exiting context manager, literals are converted to Literal expressions again
c C s
i | _ d S )N)Ú
_save_context)Úself© r
ú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/pyparsing/testing.pyÚ__init__- s z/pyparsing_test.reset_pyparsing_context.__init__c C s t j| jd<