Skip to content

Unicode bug because output streams are wrapped multiple times with codecs.StreamWriter #159

Closed

Description

@florentx

I've hit this bug with features containing non-ASCII chars.
Actually it happens only if there are at least 2 Feature files, because each feature file wraps again the output.
(If there are 12 Feature files, it ends with an output stream wrapped 12 times, which is wrong ...)

Test case coming soon.

Activity

  1. added a commit that references this issue on Apr 22, 2013
  2. florentx commented on Apr 22, 2013

    @florentx
    ContributorAuthor

    This branch demonstrates the issue:

    • the 2 first scenarios are OK (single Feature file)
    • the 2 other scenarios fail (two Feature files)

    https://github.com/florentx/behave/commits/issue159

    Run the tests with:

    $ behave -f progress --junit issue.features/
    (...)
    issue.features/issue0159.feature  ..FF
    
    Failing scenarios:
      issue.features/issue0159.feature:43  Two features, FAIL (a)
      issue.features/issue0159.feature:60  Two features, FAIL (b)
    
    0 features passed, 1 failed, 0 skipped
    2 scenarios passed, 2 failed, 0 skipped
    20 steps passed, 2 failed, 0 skipped, 0 undefined
    Took 0m0.398s
    
    

    I figured out that the output is wrapped multiple time in codecs.StreamWriter as explained in the bug report.

  3. added a commit that references this issue on Apr 22, 2013
  4. ghost assigned on Apr 23, 2013
  5. jenisys commented on Apr 23, 2013

    @jenisys
    Member

    Nice catch :-(

  6. added 2 commits that reference this issue on Apr 23, 2013
  7. jenisys commented on Apr 23, 2013

    @jenisys
    Member

    INTEGRATED INTO: behave-1.2.3a19

  8. added 2 commits that reference this issue on Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions