[wp-trac] [WordPress Trac] #31432: Unit tests are sensitive to line endings

WordPress Trac noreply at wordpress.org
Tue Jul 14 01:40:48 UTC 2020


#31432: Unit tests are sensitive to line endings
------------------------------+-----------------------------
 Reporter:  SergeyBiryukov    |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48466" 48466]:
 {{{
 #!CommitTicketReference repository="" revision="48466"
 Tests: Ignore EOL differences in some tests using multiline string
 assertions.

 Unix vs. Windows EOL style mismatches can cause misleading failures in
 tests using the heredoc syntax (`<<<`) or multiline strings as the
 expected result.

 Follow-up to [46612], [48443].

 See #31432.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/31432#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list