Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Test failure #139

Closed
domenkozar opened this Issue Mar 24, 2013 · 4 comments

Comments

Projects
None yet
3 participants

Currently on python 2.7 with Chameleon 2.11:

======================================================================
FAIL: parse_defines (chameleon.tal)
Doctest: chameleon.tal.parse_defines
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/kia8w1wryraa4xa6sya5x9ayhjdk64c3-python-2.7.3/lib/python2.7/doctest.py", line 2201, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for chameleon.tal.parse_defines
  File "/tmp/nix-build-python-Chameleon-2.11.drv-0/Chameleon-2.11/src/chameleon/tal.py", line 118, in parse_defines

----------------------------------------------------------------------
File "/tmp/nix-build-python-Chameleon-2.11.drv-0/Chameleon-2.11/src/chameleon/tal.py", line 148, in chameleon.tal.parse_defines
Failed example:
    parse_defines(s) == [
        ('local', ('hello',), 'lovely')
    ]
Exception raised:
    Traceback (most recent call last):
      File "/nix/store/kia8w1wryraa4xa6sya5x9ayhjdk64c3-python-2.7.3/lib/python2.7/doctest.py", line 1289, in __run
        compileflags, 1) in test.globs
      File "<doctest chameleon.tal.parse_defines[7]>", line 1, in <module>
        parse_defines(s) == [
      File "/tmp/nix-build-python-Chameleon-2.11.drv-0/Chameleon-2.11/src/chameleon/tal.py", line 158, in parse_defines
        raise LanguageError("Invalid define syntax", part)
    LanguageError: Invalid define syntax

     - String:     " hello lovely"


----------------------------------------------------------------------
Ran 70 tests in 7.353s

FAILED (failures=1)
Owner

malthe commented Mar 24, 2013

Interesting – I don't get this (on master, admittedly).

Is there anything that could be affected by system environment?

Owner

malthe commented Mar 24, 2013

It seems that your re module has a different opinion on what white space is in unicode mode – i.e the re.UNICODE flag.

This should probably be reported on the CPython bug tracker.

@ghost ghost assigned malthe Mar 24, 2013

Contributor

wichert commented Oct 24, 2013

Could this be due to locale settings?

@malthe malthe closed this Dec 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment