Skip to content

Commit 4e2a78c

Browse files
authored
Merge pull request #31030 from RLovelett/python3-test-replace-explicit-binary
test: Use byte literals for Python3 compatibility
2 parents 23a2a29 + c31344b commit 4e2a78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Syntax/tokens_unknown_and_invalid.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// marker is also represented in escape sequence.
77

88
// RUN: cat %s | sed -f %S/Inputs/invalid.sed > %t
9-
// RUN: %{python} -c "import sys; t = open(sys.argv[1], 'rb').read().replace('\r\n', '\n'); open(sys.argv[1], 'wb').write(t)" %t
9+
// RUN: %{python} -c "import sys; t = open(sys.argv[1], 'rb').read().replace(b'\r\n', b'\n'); open(sys.argv[1], 'wb').write(t)" %t
1010
// RUN: %swift-syntax-test -input-source-filename %t -dump-full-tokens 2>&1 | %FileCheck %t
1111
// RUN: %round-trip-syntax-test --swift-syntax-test %swift-syntax-test --file %t
1212

0 commit comments

Comments
 (0)