
    3j	                    p    d Z ddlmZ ddlZddlZddlZddlmZ ej                  Z	d Z
edk(  r e
        yy)a0  
A Python 3 only module that runs all the braille Tests and no other tests.

Does not run the doctests, unfortunately.  TODO: use mainTest somehow

This module produces a minimum of output which is most helpful
to people who are programming music21 on a screen reader.

For Bo-Cheng Jhan with my thanks.
    )annotationsN)braillec            	        t         j                  } d}d}t        j                  D ]  }t	        j
                  t        dd| gdd      }|j                  |j                  fD ]  }||j                  d      j                         D ]  }|st        j                  d|      rt        j                  d	|      r4t        j                  d
|      rKt        j                  d|      rb|dk(  rht        j                  d|      }|r|t        |j                  d            z  }d}t        |          t        d|       |rt        d       | t         _        y t        d       | t         _        y )Nr   Fz-mzmusic21.braille.T)checkcapture_outputzutf-8z!found in sys.modules after importzwarn\(RuntimeWarning\(msg\)\)z^\.*$z^-+$OKz^Ran (\d+) tests? in    zTotal tests: zERRORS FOUNDz	All good!)sysstderrr   __all__
subprocessruncurrent_executablestdoutdecode
splitlinesresearchmatchintgroupprint)savedStderr
totalTestshadErrormodName
completion	errOutputthisLinenumTestss           O/DATA/.local/lib/python3.12/site-packages/music21/braille/runAllBrailleTests.pyrunTestr"      sQ   **KJH??^^)9''CD


 $**J,=,==I %,,W5@@B99A8L99=xH88Hh/88GX.t#88$<hG#hnnQ&7"88Jh) C > #< 
/:&n CJ 	kCJ    __main__)__doc__
__future__r   r   r   r
   music21r   
executabler   r"   __name__ r#   r!   <module>r+      s?   	 # 	  
 ^^ (V zI r#   