Changeset 4345:f3f104b31af4 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/21/11 14:03:17 (9 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix nesting test and date formatting test.

Running the nesting test with depth 8 lead to a segfault from the JVM.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_ul4.py

    r4343 r4345  
    759759    sv = u"x" 
    760760    n = 4 
    761     for i in xrange(8): # when using 10 compiling the variable will run out of registers 
     761    # when using 10 compiling the variable will run out of registers 
     762    # when using 8 Java will output "An irrecoverable stack overflow has occurred" 
     763    depth = 7 
     764    for i in xrange(depth): 
    762765        sc = u"({})+({})".format(sc, sc) 
    763766        sv = u"({})+({})".format(sv, sv) 
     
    14561459        yield eq, "56", r(code, format="%S", data=t) 
    14571460        yield eq, "987000", r(code, format="%f", data=t) 
    1458         yield contains, ("Sun", "Son"), r(code, format="%a", data=t) 
     1461        yield contains, ("Sun", "So"), r(code, format="%a", data=t) 
    14591462        yield contains, ("Sunday", "Sonntag"), r(code, format="%A", data=t) 
    14601463        yield eq, "Feb", r(code, format="%b", data=t) 
     
    14671470        yield eq, "05", r(code, format="%W", data=t) 
    14681471        yield eq, "11", r(code, format="%y", data=t) 
    1469         yield contains, ("Sun Feb  6 12:34:56 2011", "Son Feb  6 12:34:56 2011"), r(code, format="%c", data=t) 
     1472        yield contains, ("Sun Feb  6 12:34:56 2011", "So Feb  6 12:34:56 2011"), r(code, format="%c", data=t) 
    14701473        yield eq, "02/06/11", r(code, format="%x", data=t) 
    14711474        yield eq, "12:34:56", r(code, format="%X", data=t)