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

WordPress Trac noreply at wordpress.org
Sat Jul 11 23:28:08 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:"48443" 48443]:
 {{{
 #!CommitTicketReference repository="" revision="48443"
 Tests: Ignore EOL differences in email 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], [48033].

 Props davidbaumwald.
 See #31432, #41750.
 }}}

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


More information about the wp-trac mailing list