[Python-Dev] test_ucn errors ?

Michael Hudson mwh21@cam.ac.uk
19 Jan 2001 19:25:03 +0000

"Fredrik Lundh" <fredrik@effbot.org> writes:

> > Feels to me like there's a bug in the string literal processing that
> > makes *any* string literal containing \N{...} fail during code
> > generation.
> umm.  can anyone explain how this can happen:
> python ../lib/test/regrtest.py test_ucn
> test_ucn
> 1 test OK.

This will run the .pyc if present?
> python ../lib/test/test_ucn.py
> UnicodeError: Unicode-Escape decoding error: Invalid Unicode Character Name

This won't?  

Note: no traceback -> (in effect, if not design) compile time error.

> how can a test that works under regrtest.py fail when
> it's run separately?  what am I missing here?

Well, this is just my guess.


  Well, you pretty much need Microsoft stuff to get misbehaviours bad
  enough to actually tear the time-space continuum.  Luckily for you,
  MS Internet Explorer is available for Solaris.
                              -- Calle Dybedahl, alt.sysadmin.recovery