
    i                     v    S SK r S SKrS SKr " S S\R                  5      r\S:X  a  \R                  " 5         gg)    Nc                       \ rS rSrSS jrSrg)
TestSchema   Nc                 >   [         R                  R                  S5      (       a  SOSnUS-   nUS-   US-   US-   /nU HJ  nU R                  US9   U R	                  [
        R                  " X$S	S
9SU SU SU S35        SSS5        ML     g! , (       d  f       M^  = f)a  Test that all copies of scalar_type.fbs are in sync.

Flatbuffers expects all included files to be in the same directory.
For example, program.fbs includes scalar_type.fbs, and must be in the
same directory. As most of the schema files in executorch include
scalar_type.fbs, it is copied in several places across the executorch
repo. This test ensures they all remain in sync with the canonical
version in schema/scalar_type.fbs.

See https://github.com/pytorch/executorch/issues/11572
z!executorch/schema/scalar_type.fbszexecutorch/ zschema/scalar_type.fbsz/devtools/bundled_program/schema/scalar_type.fbszdevtools/etdump/scalar_type.fbsz/extension/flat_tensor/serialize/scalar_type.fbs)copyF)shallowz scalar_type.fbs is out of sync: z differs from z). Please sync the schema by copying from .N)ospathexistssubTest
assertTruefilecmpcmp)selfprefixcanonical_pathcopies	copy_paths        a/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/executorch/schema/test/test_schema.pytest_schema_syncTestSchema.test_schema_sync   s      WW^^,OPPMVX 	
  ":: FF66FF
  I9-KK5I6ykP^O_ `>>L=MQP .-  --s   0B
B	 )returnN)__name__
__module____qualname____firstlineno__r   __static_attributes__r       r   r   r      s    !r!   r   __main__)r   r   unittestTestCaser   r   mainr   r!   r   <module>r&      s;     	 """ "J zMMO r!   