tests/test-bad-extension.t
changeset 50418 13b66bcc9de8
parent 49957 f68b0a5d3211
child 50722 7e5be4a7cda7
equal deleted inserted replaced
50417:bcc8b351bcf2 50418:13b66bcc9de8
    61   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
    61   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
    62   Traceback (most recent call last):
    62   Traceback (most recent call last):
    63   Exception: bit bucket overflow
    63   Exception: bit bucket overflow
    64   *** failed to import extension "badext2": No module named 'badext2'
    64   *** failed to import extension "badext2": No module named 'badext2'
    65   Traceback (most recent call last):
    65   Traceback (most recent call last):
    66   ImportError: No module named 'hgext.badext2' (no-py36 !)
    66   ModuleNotFoundError: No module named 'hgext.badext2'
    67   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
       
    68   Traceback (most recent call last):
    67   Traceback (most recent call last):
    69   ImportError: No module named 'hgext3rd.badext2' (no-py36 !)
    68   ModuleNotFoundError: No module named 'hgext3rd.badext2'
    70   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
       
    71   Traceback (most recent call last):
    69   Traceback (most recent call last):
    72   ImportError: No module named 'badext2' (no-py36 !)
    70   ModuleNotFoundError: No module named 'badext2'
    73   ModuleNotFoundError: No module named 'badext2' (py36 !)
       
    74 
    71 
    75 names of extensions failed to load can be accessed via extensions.notloaded()
    72 names of extensions failed to load can be accessed via extensions.notloaded()
    76 
    73 
    77   $ cat <<EOF > showbadexts.py
    74   $ cat <<EOF > showbadexts.py
    78   > from mercurial import commands, extensions, registrar
    75   > from mercurial import commands, extensions, registrar
   109   YYYY/MM/DD HH:MM:SS (PID)>     - invoking registered callbacks: baddocext
   106   YYYY/MM/DD HH:MM:SS (PID)>     - invoking registered callbacks: baddocext
   110   YYYY/MM/DD HH:MM:SS (PID)>     > callbacks completed in * (glob)
   107   YYYY/MM/DD HH:MM:SS (PID)>     > callbacks completed in * (glob)
   111   YYYY/MM/DD HH:MM:SS (PID)>   - loading extension: badext2
   108   YYYY/MM/DD HH:MM:SS (PID)>   - loading extension: badext2
   112   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob)
   109   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob)
   113   Traceback (most recent call last):
   110   Traceback (most recent call last):
   114   ImportError: No module named 'hgext.badext2' (no-py36 !)
   111   ModuleNotFoundError: No module named 'hgext.badext2'
   115   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
       
   116   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob)
   112   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob)
   117   Traceback (most recent call last):
   113   Traceback (most recent call last):
   118   ImportError: No module named 'hgext.badext2' (no-py36 !)
   114   ModuleNotFoundError: No module named 'hgext.badext2'
   119   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
       
   120   Traceback (most recent call last):
   115   Traceback (most recent call last):
   121   ImportError: No module named 'hgext3rd.badext2' (no-py36 !)
   116   ModuleNotFoundError: No module named 'hgext3rd.badext2'
   122   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
       
   123   *** failed to import extension "badext2": No module named 'badext2'
   117   *** failed to import extension "badext2": No module named 'badext2'
   124   Traceback (most recent call last):
   118   Traceback (most recent call last):
   125   ImportError: No module named 'hgext.badext2' (no-py36 !)
   119   ModuleNotFoundError: No module named 'hgext.badext2'
   126   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
       
   127   Traceback (most recent call last):
   120   Traceback (most recent call last):
   128   ImportError: No module named 'hgext3rd.badext2' (no-py36 !)
   121   ModuleNotFoundError: No module named 'hgext3rd.badext2'
   129   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
       
   130   Traceback (most recent call last):
   122   Traceback (most recent call last):
   131   ModuleNotFoundError: No module named 'badext2' (py36 !)
   123   ModuleNotFoundError: No module named 'badext2'
   132   ImportError: No module named 'badext2' (no-py36 !)
       
   133   YYYY/MM/DD HH:MM:SS (PID)> > loaded 2 extensions, total time * (glob)
   124   YYYY/MM/DD HH:MM:SS (PID)> > loaded 2 extensions, total time * (glob)
   134   YYYY/MM/DD HH:MM:SS (PID)> - loading configtable attributes
   125   YYYY/MM/DD HH:MM:SS (PID)> - loading configtable attributes
   135   YYYY/MM/DD HH:MM:SS (PID)> - executing uisetup hooks
   126   YYYY/MM/DD HH:MM:SS (PID)> - executing uisetup hooks
   136   YYYY/MM/DD HH:MM:SS (PID)>   - running uisetup for gpg
   127   YYYY/MM/DD HH:MM:SS (PID)>   - running uisetup for gpg
   137   YYYY/MM/DD HH:MM:SS (PID)>   > uisetup for gpg took * (glob)
   128   YYYY/MM/DD HH:MM:SS (PID)>   > uisetup for gpg took * (glob)