Code

Ticket #7297: 7297.doctest_run.txt

File 7297.doctest_run.txt, 2.3 KB (added by akaihola, 6 years ago)

Failures of django.utils.text doctests

Line 
1**********************************************************************
2File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 17, in django.utils.text
3Failed example:
4    get_valid_filename("john's portrait in 2004.jpg")
5Expected:
6    'johns_portrait_in_2004.jpg'
7Got:
8    u'johns_portrait_in_2004.jpg'
9**********************************************************************
10File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 20, in django.utils.text
11Failed example:
12    get_text_list(['a', 'b', 'c', 'd'])
13Expected:
14    'a, b, c or d'
15Got:
16    u'a, b, c or d'
17**********************************************************************
18File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 22, in django.utils.text
19Failed example:
20    get_text_list(['a', 'b', 'c'], 'and')
21Expected:
22    'a, b and c'
23Got:
24    u'a, b and c'
25**********************************************************************
26File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 24, in django.utils.text
27Failed example:
28    get_text_list(['a', 'b'], 'and')
29Expected:
30    'a and b'
31Got:
32    u'a and b'
33**********************************************************************
34File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 26, in django.utils.text
35Failed example:
36    get_text_list(['a'])
37Expected:
38    'a'
39Got:
40    u'a'
41**********************************************************************
42File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 28, in django.utils.text
43Failed example:
44    get_text_list([])
45Expected:
46    ''
47Got:
48    u''
49**********************************************************************
50File "/home/akaihola/dl/prg/www/django/django/utils/text.py", line 36, in django.utils.text
51Failed example:
52    list(smart_split('This is "a person's" test.'))
53Exception raised:
54    Traceback (most recent call last):
55      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
56        compileflags, 1) in test.globs
57      File "<doctest django.utils.text[6]>", line 1
58         list(smart_split('This is "a person's" test.'))
59                                             ^
60     SyntaxError: invalid syntax
61**********************************************************************
621 items had failures:
63   7 of   7 in django.utils.text
64***Test Failed*** 7 failures.