On Mon, Jul 16, 2012 at 12:43 PM, Pietro <[email protected]> wrote: > sto utilizzando le doctest per la mia documentazione... solo che il > NORMALIZE_WHITESPACE, mi funziona solo con le liste e non con i > dizionari... [...] > Trying: > z #doctest: +NORMALIZE_WHITESPACE > Expecting: > {'a' : 0, > 'b' : 1, > 'c' : 2, > 'd' :3} > ********************************************************************** > File "test.py", line 8, in test > Failed example: > z #doctest: +NORMALIZE_WHITESPACE > Expected: > {'a' : 0, > 'b' : 1, > 'c' : 2, > 'd' :3} > Got: > {'a': 0, 'c': 2, 'b': 1, 'd': 3} > ********************************************************************** > 1 items had failures: > 1 of 4 in test > 4 tests in 1 items. > 3 passed and 1 failed. > ***Test Failed*** 1 failures. > > cosa sto sbagliando?
nell'assumere che le chiavi dei dizionari siano ordinate. © -- R K-<M>-S L _______________________________________________ Python mailing list [email protected] http://lists.python.it/mailman/listinfo/python
