Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 350 by ade.touk...@gmail.com: FAIL: testPrintAllExtensions while running for protobuf: python setup.py test
http://code.google.com/p/protobuf/issues/detail?id=350

What steps will reproduce the problem?
1. install protoc.exe to PATH
2. 'cd' into 'source\python' folder
3. python setup.py test

What is the expected output? What do you see instead?
Should get successful test result only. But get the following instead
FAIL: testPrintAllExtensions (google.protobuf.internal.text_format_test.TextFormatTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\thirdparty\protobuf\2.4.0\source\python\google\pro
obuf\internal\text_format_test.py", line 79, in testPrintAllExtensions
    'text_format_unittest_extensions_data.txt')
  File "c:\thirdparty\protobuf\2.4.0\source\python\google\pro
obuf\internal\text_format_test.py", line 56, in CompareToGoldenFile
    self.CompareToGoldenLines(text, golden_lines)
  File "c:\thirdparty\protobuf\2.4.0\source\python\google\pro
obuf\internal\text_format_test.py", line 65, in CompareToGoldenLines
    ''.join(difflib.ndiff(golden_lines, actual_lines)))
AssertionError: Text doesn't match golden.  Diff:
- [protobuf_unittest.optional_int32_extension]: 101
?                                                  -
+ [protobuf_unittest.optional_int32_extension]: 101
- [protobuf_unittest.optional_int64_extension]: 102
?                                                  -
+ [protobuf_unittest.optional_int64_extension]: 102
- [protobuf_unittest.optional_uint32_extension]: 103
?                                                   -
+ [protobuf_unittest.optional_uint32_extension]: 103
- [protobuf_unittest.optional_uint64_extension]: 104
?                                                   -
+ [protobuf_unittest.optional_uint64_extension]: 104
- [protobuf_unittest.optional_sint32_extension]: 105
?                                                   -
+ [protobuf_unittest.optional_sint32_extension]: 105
- [protobuf_unittest.optional_sint64_extension]: 106
?                                                   -
+ [protobuf_unittest.optional_sint64_extension]: 106
- [protobuf_unittest.optional_fixed32_extension]: 107
?                                                    -
+ [protobuf_unittest.optional_fixed32_extension]: 107
- [protobuf_unittest.optional_fixed64_extension]: 108
?                                                    -
+ [protobuf_unittest.optional_fixed64_extension]: 108
- [protobuf_unittest.optional_sfixed32_extension]: 109
?                                                     -
+ [protobuf_unittest.optional_sfixed32_extension]: 109
- [protobuf_unittest.optional_sfixed64_extension]: 110
?                                                     -
+ [protobuf_unittest.optional_sfixed64_extension]: 110
- [protobuf_unittest.optional_float_extension]: 111
?                                                  -
+ [protobuf_unittest.optional_float_extension]: 111
- [protobuf_unittest.optional_double_extension]: 112
?                                                   -
+ [protobuf_unittest.optional_double_extension]: 112
- [protobuf_unittest.optional_bool_extension]: true
?                                                  -
+ [protobuf_unittest.optional_bool_extension]: true
- [protobuf_unittest.optional_string_extension]: "115"
?                                                     -
+ [protobuf_unittest.optional_string_extension]: "115"
- [protobuf_unittest.optional_bytes_extension]: "116"
?                                                    -
+ [protobuf_unittest.optional_bytes_extension]: "116"
- [protobuf_unittest.optionalgroup_extension] {
?                                              -
+ [protobuf_unittest.optionalgroup_extension] {
-   a: 117
?         -
+   a: 117
- }
?  -
+ }
- [protobuf_unittest.optional_nested_message_extension] {
?                                                        -
+ [protobuf_unittest.optional_nested_message_extension] {
-   bb: 118
?          -
+   bb: 118
- }
?  -
+ }
- [protobuf_unittest.optional_foreign_message_extension] {
?                                                         -
+ [protobuf_unittest.optional_foreign_message_extension] {
-   c: 119
?         -
+   c: 119
- }
?  -
+ }
- [protobuf_unittest.optional_import_message_extension] {
?                                                        -
+ [protobuf_unittest.optional_import_message_extension] {
-   d: 120
?         -
+   d: 120
- }
?  -
+ }
- [protobuf_unittest.optional_nested_enum_extension]: BAZ
?                                                        -
+ [protobuf_unittest.optional_nested_enum_extension]: BAZ
- [protobuf_unittest.optional_foreign_enum_extension]: FOREIGN_BAZ
?                                                                 -
+ [protobuf_unittest.optional_foreign_enum_extension]: FOREIGN_BAZ
- [protobuf_unittest.optional_import_enum_extension]: IMPORT_BAZ
?                                                               -
+ [protobuf_unittest.optional_import_enum_extension]: IMPORT_BAZ
- [protobuf_unittest.optional_string_piece_extension]: "124"
?                                                           -
+ [protobuf_unittest.optional_string_piece_extension]: "124"
- [protobuf_unittest.optional_cord_extension]: "125"
?                                                   -
+ [protobuf_unittest.optional_cord_extension]: "125"
- [protobuf_unittest.repeated_int32_extension]: 201
?                                                  -
+ [protobuf_unittest.repeated_int32_extension]: 201
- [protobuf_unittest.repeated_int32_extension]: 301
?                                                  -
+ [protobuf_unittest.repeated_int32_extension]: 301
- [protobuf_unittest.repeated_int64_extension]: 202
?                                                  -
+ [protobuf_unittest.repeated_int64_extension]: 202
- [protobuf_unittest.repeated_int64_extension]: 302
?                                                  -
+ [protobuf_unittest.repeated_int64_extension]: 302
- [protobuf_unittest.repeated_uint32_extension]: 203
?                                                   -
+ [protobuf_unittest.repeated_uint32_extension]: 203
- [protobuf_unittest.repeated_uint32_extension]: 303
?                                                   -
+ [protobuf_unittest.repeated_uint32_extension]: 303
- [protobuf_unittest.repeated_uint64_extension]: 204
?                                                   -
+ [protobuf_unittest.repeated_uint64_extension]: 204
- [protobuf_unittest.repeated_uint64_extension]: 304
?                                                   -
+ [protobuf_unittest.repeated_uint64_extension]: 304
- [protobuf_unittest.repeated_sint32_extension]: 205
?                                                   -
+ [protobuf_unittest.repeated_sint32_extension]: 205
- [protobuf_unittest.repeated_sint32_extension]: 305
?                                                   -
+ [protobuf_unittest.repeated_sint32_extension]: 305
- [protobuf_unittest.repeated_sint64_extension]: 206
?                                                   -
+ [protobuf_unittest.repeated_sint64_extension]: 206
- [protobuf_unittest.repeated_sint64_extension]: 306
?                                                   -
+ [protobuf_unittest.repeated_sint64_extension]: 306
- [protobuf_unittest.repeated_fixed32_extension]: 207
?                                                    -
+ [protobuf_unittest.repeated_fixed32_extension]: 207
- [protobuf_unittest.repeated_fixed32_extension]: 307
?                                                    -
+ [protobuf_unittest.repeated_fixed32_extension]: 307
- [protobuf_unittest.repeated_fixed64_extension]: 208
?                                                    -
+ [protobuf_unittest.repeated_fixed64_extension]: 208
- [protobuf_unittest.repeated_fixed64_extension]: 308
?                                                    -
+ [protobuf_unittest.repeated_fixed64_extension]: 308
- [protobuf_unittest.repeated_sfixed32_extension]: 209
?                                                     -
+ [protobuf_unittest.repeated_sfixed32_extension]: 209
- [protobuf_unittest.repeated_sfixed32_extension]: 309
?                                                     -
+ [protobuf_unittest.repeated_sfixed32_extension]: 309
- [protobuf_unittest.repeated_sfixed64_extension]: 210
?                                                     -
+ [protobuf_unittest.repeated_sfixed64_extension]: 210
- [protobuf_unittest.repeated_sfixed64_extension]: 310
?                                                     -
+ [protobuf_unittest.repeated_sfixed64_extension]: 310
- [protobuf_unittest.repeated_float_extension]: 211
?                                                  -
+ [protobuf_unittest.repeated_float_extension]: 211
- [protobuf_unittest.repeated_float_extension]: 311
?                                                  -
+ [protobuf_unittest.repeated_float_extension]: 311
- [protobuf_unittest.repeated_double_extension]: 212
?                                                   -
+ [protobuf_unittest.repeated_double_extension]: 212
- [protobuf_unittest.repeated_double_extension]: 312
?                                                   -
+ [protobuf_unittest.repeated_double_extension]: 312
- [protobuf_unittest.repeated_bool_extension]: true
?                                                  -
+ [protobuf_unittest.repeated_bool_extension]: true
- [protobuf_unittest.repeated_bool_extension]: false
?                                                   -
+ [protobuf_unittest.repeated_bool_extension]: false
- [protobuf_unittest.repeated_string_extension]: "215"
?                                                     -
+ [protobuf_unittest.repeated_string_extension]: "215"
- [protobuf_unittest.repeated_string_extension]: "315"
?                                                     -
+ [protobuf_unittest.repeated_string_extension]: "315"
- [protobuf_unittest.repeated_bytes_extension]: "216"
?                                                    -
+ [protobuf_unittest.repeated_bytes_extension]: "216"
- [protobuf_unittest.repeated_bytes_extension]: "316"
?                                                    -
+ [protobuf_unittest.repeated_bytes_extension]: "316"
- [protobuf_unittest.repeatedgroup_extension] {
?                                              -
+ [protobuf_unittest.repeatedgroup_extension] {
-   a: 217
?         -
+   a: 217
- }
?  -
+ }
- [protobuf_unittest.repeatedgroup_extension] {
?                                              -
+ [protobuf_unittest.repeatedgroup_extension] {
-   a: 317
?         -
+   a: 317
- }
?  -
+ }
- [protobuf_unittest.repeated_nested_message_extension] {
?                                                        -
+ [protobuf_unittest.repeated_nested_message_extension] {
-   bb: 218
?          -
+   bb: 218
- }
?  -
+ }
- [protobuf_unittest.repeated_nested_message_extension] {
?                                                        -
+ [protobuf_unittest.repeated_nested_message_extension] {
-   bb: 318
?          -
+   bb: 318
- }
?  -
+ }
- [protobuf_unittest.repeated_foreign_message_extension] {
?                                                         -
+ [protobuf_unittest.repeated_foreign_message_extension] {
-   c: 219
?         -
+   c: 219
- }
?  -
+ }
- [protobuf_unittest.repeated_foreign_message_extension] {
?                                                         -
+ [protobuf_unittest.repeated_foreign_message_extension] {
-   c: 319
?         -
+   c: 319
- }
?  -
+ }
- [protobuf_unittest.repeated_import_message_extension] {
?                                                        -
+ [protobuf_unittest.repeated_import_message_extension] {
-   d: 220
?         -
+   d: 220
- }
?  -
+ }
- [protobuf_unittest.repeated_import_message_extension] {
?                                                        -
+ [protobuf_unittest.repeated_import_message_extension] {
-   d: 320
?         -
+   d: 320
- }
?  -
+ }
- [protobuf_unittest.repeated_nested_enum_extension]: BAR
?                                                        -
+ [protobuf_unittest.repeated_nested_enum_extension]: BAR
- [protobuf_unittest.repeated_nested_enum_extension]: BAZ
?                                                        -
+ [protobuf_unittest.repeated_nested_enum_extension]: BAZ
- [protobuf_unittest.repeated_foreign_enum_extension]: FOREIGN_BAR
?                                                                 -
+ [protobuf_unittest.repeated_foreign_enum_extension]: FOREIGN_BAR
- [protobuf_unittest.repeated_foreign_enum_extension]: FOREIGN_BAZ
?                                                                 -
+ [protobuf_unittest.repeated_foreign_enum_extension]: FOREIGN_BAZ
- [protobuf_unittest.repeated_import_enum_extension]: IMPORT_BAR
?                                                               -
+ [protobuf_unittest.repeated_import_enum_extension]: IMPORT_BAR
- [protobuf_unittest.repeated_import_enum_extension]: IMPORT_BAZ
?                                                               -
+ [protobuf_unittest.repeated_import_enum_extension]: IMPORT_BAZ
- [protobuf_unittest.repeated_string_piece_extension]: "224"
?                                                           -
+ [protobuf_unittest.repeated_string_piece_extension]: "224"
- [protobuf_unittest.repeated_string_piece_extension]: "324"
?                                                           -
+ [protobuf_unittest.repeated_string_piece_extension]: "324"
- [protobuf_unittest.repeated_cord_extension]: "225"
?                                                   -
+ [protobuf_unittest.repeated_cord_extension]: "225"
- [protobuf_unittest.repeated_cord_extension]: "325"
?                                                   -
+ [protobuf_unittest.repeated_cord_extension]: "325"
- [protobuf_unittest.default_int32_extension]: 401
?                                                 -
+ [protobuf_unittest.default_int32_extension]: 401
- [protobuf_unittest.default_int64_extension]: 402
?                                                 -
+ [protobuf_unittest.default_int64_extension]: 402
- [protobuf_unittest.default_uint32_extension]: 403
?                                                  -
+ [protobuf_unittest.default_uint32_extension]: 403
- [protobuf_unittest.default_uint64_extension]: 404
?                                                  -
+ [protobuf_unittest.default_uint64_extension]: 404
- [protobuf_unittest.default_sint32_extension]: 405
?                                                  -
+ [protobuf_unittest.default_sint32_extension]: 405
- [protobuf_unittest.default_sint64_extension]: 406
?                                                  -
+ [protobuf_unittest.default_sint64_extension]: 406
- [protobuf_unittest.default_fixed32_extension]: 407
?                                                   -
+ [protobuf_unittest.default_fixed32_extension]: 407
- [protobuf_unittest.default_fixed64_extension]: 408
?                                                   -
+ [protobuf_unittest.default_fixed64_extension]: 408
- [protobuf_unittest.default_sfixed32_extension]: 409
?                                                    -
+ [protobuf_unittest.default_sfixed32_extension]: 409
- [protobuf_unittest.default_sfixed64_extension]: 410
?                                                    -
+ [protobuf_unittest.default_sfixed64_extension]: 410
- [protobuf_unittest.default_float_extension]: 411
?                                                 -
+ [protobuf_unittest.default_float_extension]: 411
- [protobuf_unittest.default_double_extension]: 412
?                                                  -
+ [protobuf_unittest.default_double_extension]: 412
- [protobuf_unittest.default_bool_extension]: false
?                                                  -
+ [protobuf_unittest.default_bool_extension]: false
- [protobuf_unittest.default_string_extension]: "415"
?                                                    -
+ [protobuf_unittest.default_string_extension]: "415"
- [protobuf_unittest.default_bytes_extension]: "416"
?                                                   -
+ [protobuf_unittest.default_bytes_extension]: "416"
- [protobuf_unittest.default_nested_enum_extension]: FOO
?                                                       -
+ [protobuf_unittest.default_nested_enum_extension]: FOO
- [protobuf_unittest.default_foreign_enum_extension]: FOREIGN_FOO
?                                                                -
+ [protobuf_unittest.default_foreign_enum_extension]: FOREIGN_FOO
- [protobuf_unittest.default_import_enum_extension]: IMPORT_FOO
?                                                              -
+ [protobuf_unittest.default_import_enum_extension]: IMPORT_FOO
- [protobuf_unittest.default_string_piece_extension]: "424"
?                                                          -
+ [protobuf_unittest.default_string_piece_extension]: "424"
- [protobuf_unittest.default_cord_extension]: "425"
?                                                  -
+ [protobuf_unittest.default_cord_extension]: "425"


======================================================================
FAIL: testPrintAllFields (google.protobuf.internal.text_format_test.TextFormatTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\thirdparty\protobuf\2.4.0\source\python\google\pro
obuf\internal\text_format_test.py", line 72, in testPrintAllFields
    'text_format_unittest_data.txt')
  File "c:\thirdparty\protobuf\2.4.0\source\python\google\pro
obuf\internal\text_format_test.py", line 56, in CompareToGoldenFile
    self.CompareToGoldenLines(text, golden_lines)
  File "c:\thirdparty\protobuf\2.4.0\source\python\google\pro
obuf\internal\text_format_test.py", line 65, in CompareToGoldenLines
    ''.join(difflib.ndiff(golden_lines, actual_lines)))
AssertionError: Text doesn't match golden.  Diff:
- optional_int32: 101
?                    -
+ optional_int32: 101
- optional_int64: 102
?                    -
+ optional_int64: 102
- optional_uint32: 103
?                     -
+ optional_uint32: 103
- optional_uint64: 104
?                     -
+ optional_uint64: 104
- optional_sint32: 105
?                     -
+ optional_sint32: 105
- optional_sint64: 106
?                     -
+ optional_sint64: 106
- optional_fixed32: 107
?                      -
+ optional_fixed32: 107
- optional_fixed64: 108
?                      -
+ optional_fixed64: 108
- optional_sfixed32: 109
?                       -
+ optional_sfixed32: 109
- optional_sfixed64: 110
?                       -
+ optional_sfixed64: 110
- optional_float: 111
?                    -
+ optional_float: 111
- optional_double: 112
?                     -
+ optional_double: 112
- optional_bool: true
?                    -
+ optional_bool: true
- optional_string: "115"
?                       -
+ optional_string: "115"
- optional_bytes: "116"
?                      -
+ optional_bytes: "116"
- OptionalGroup {
?                -
+ OptionalGroup {
-   a: 117
?         -
+   a: 117
- }
?  -
+ }
- optional_nested_message {
?                          -
+ optional_nested_message {
-   bb: 118
?          -
+   bb: 118
- }
?  -
+ }
- optional_foreign_message {
?                           -
+ optional_foreign_message {
-   c: 119
?         -
+   c: 119
- }
?  -
+ }
- optional_import_message {
?                          -
+ optional_import_message {
-   d: 120
?         -
+   d: 120
- }
?  -
+ }
- optional_nested_enum: BAZ
?                          -
+ optional_nested_enum: BAZ
- optional_foreign_enum: FOREIGN_BAZ
?                                   -
+ optional_foreign_enum: FOREIGN_BAZ
- optional_import_enum: IMPORT_BAZ
?                                 -
+ optional_import_enum: IMPORT_BAZ
- optional_string_piece: "124"
?                             -
+ optional_string_piece: "124"
- optional_cord: "125"
?                     -
+ optional_cord: "125"
- repeated_int32: 201
?                    -
+ repeated_int32: 201
- repeated_int32: 301
?                    -
+ repeated_int32: 301
- repeated_int64: 202
?                    -
+ repeated_int64: 202
- repeated_int64: 302
?                    -
+ repeated_int64: 302
- repeated_uint32: 203
?                     -
+ repeated_uint32: 203
- repeated_uint32: 303
?                     -
+ repeated_uint32: 303
- repeated_uint64: 204
?                     -
+ repeated_uint64: 204
- repeated_uint64: 304
?                     -
+ repeated_uint64: 304
- repeated_sint32: 205
?                     -
+ repeated_sint32: 205
- repeated_sint32: 305
?                     -
+ repeated_sint32: 305
- repeated_sint64: 206
?                     -
+ repeated_sint64: 206
- repeated_sint64: 306
?                     -
+ repeated_sint64: 306
- repeated_fixed32: 207
?                      -
+ repeated_fixed32: 207
- repeated_fixed32: 307
?                      -
+ repeated_fixed32: 307
- repeated_fixed64: 208
?                      -
+ repeated_fixed64: 208
- repeated_fixed64: 308
?                      -
+ repeated_fixed64: 308
- repeated_sfixed32: 209
?                       -
+ repeated_sfixed32: 209
- repeated_sfixed32: 309
?                       -
+ repeated_sfixed32: 309
- repeated_sfixed64: 210
?                       -
+ repeated_sfixed64: 210
- repeated_sfixed64: 310
?                       -
+ repeated_sfixed64: 310
- repeated_float: 211
?                    -
+ repeated_float: 211
- repeated_float: 311
?                    -
+ repeated_float: 311
- repeated_double: 212
?                     -
+ repeated_double: 212
- repeated_double: 312
?                     -
+ repeated_double: 312
- repeated_bool: true
?                    -
+ repeated_bool: true
- repeated_bool: false
?                     -
+ repeated_bool: false
- repeated_string: "215"
?                       -
+ repeated_string: "215"
- repeated_string: "315"
?                       -
+ repeated_string: "315"
- repeated_bytes: "216"
?                      -
+ repeated_bytes: "216"
- repeated_bytes: "316"
?                      -
+ repeated_bytes: "316"
- RepeatedGroup {
?                -
+ RepeatedGroup {
-   a: 217
?         -
+   a: 217
- }
?  -
+ }
- RepeatedGroup {
?                -
+ RepeatedGroup {
-   a: 317
?         -
+   a: 317
- }
?  -
+ }
- repeated_nested_message {
?                          -
+ repeated_nested_message {
-   bb: 218
?          -
+   bb: 218
- }
?  -
+ }
- repeated_nested_message {
?                          -
+ repeated_nested_message {
-   bb: 318
?          -
+   bb: 318
- }
?  -
+ }
- repeated_foreign_message {
?                           -
+ repeated_foreign_message {
-   c: 219
?         -
+   c: 219
- }
?  -
+ }
- repeated_foreign_message {
?                           -
+ repeated_foreign_message {
-   c: 319
?         -
+   c: 319
- }
?  -
+ }
- repeated_import_message {
?                          -
+ repeated_import_message {
-   d: 220
?         -
+   d: 220
- }
?  -
+ }
- repeated_import_message {
?                          -
+ repeated_import_message {
-   d: 320
?         -
+   d: 320
- }
?  -
+ }
- repeated_nested_enum: BAR
?                          -
+ repeated_nested_enum: BAR
- repeated_nested_enum: BAZ
?                          -
+ repeated_nested_enum: BAZ
- repeated_foreign_enum: FOREIGN_BAR
?                                   -
+ repeated_foreign_enum: FOREIGN_BAR
- repeated_foreign_enum: FOREIGN_BAZ
?                                   -
+ repeated_foreign_enum: FOREIGN_BAZ
- repeated_import_enum: IMPORT_BAR
?                                 -
+ repeated_import_enum: IMPORT_BAR
- repeated_import_enum: IMPORT_BAZ
?                                 -
+ repeated_import_enum: IMPORT_BAZ
- repeated_string_piece: "224"
?                             -
+ repeated_string_piece: "224"
- repeated_string_piece: "324"
?                             -
+ repeated_string_piece: "324"
- repeated_cord: "225"
?                     -
+ repeated_cord: "225"
- repeated_cord: "325"
?                     -
+ repeated_cord: "325"
- default_int32: 401
?                   -
+ default_int32: 401
- default_int64: 402
?                   -
+ default_int64: 402
- default_uint32: 403
?                    -
+ default_uint32: 403
- default_uint64: 404
?                    -
+ default_uint64: 404
- default_sint32: 405
?                    -
+ default_sint32: 405
- default_sint64: 406
?                    -
+ default_sint64: 406
- default_fixed32: 407
?                     -
+ default_fixed32: 407
- default_fixed64: 408
?                     -
+ default_fixed64: 408
- default_sfixed32: 409
?                      -
+ default_sfixed32: 409
- default_sfixed64: 410
?                      -
+ default_sfixed64: 410
- default_float: 411
?                   -
+ default_float: 411
- default_double: 412
?                    -
+ default_double: 412
- default_bool: false
?                    -
+ default_bool: false
- default_string: "415"
?                      -
+ default_string: "415"
- default_bytes: "416"
?                     -
+ default_bytes: "416"
- default_nested_enum: FOO
?                         -
+ default_nested_enum: FOO
- default_foreign_enum: FOREIGN_FOO
?                                  -
+ default_foreign_enum: FOREIGN_FOO
- default_import_enum: IMPORT_FOO
?                                -
+ default_import_enum: IMPORT_FOO
- default_string_piece: "424"
?                            -
+ default_string_piece: "424"
- default_cord: "425"
?                    -
+ default_cord: "425"


----------------------------------------------------------------------
Ran 193 tests in 1.188s

FAILED (failures=2)

What version of the product are you using? On what operating system?
Python 2.6.7
ProtoBuf 2.4.0
Please provide any additional information below.


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to