@@ -68,6 +68,7 @@ def test_captured_large_string(capsys):
68
68
assert stdout == msg
69
69
assert stderr == ""
70
70
71
+
71
72
def test_captured_utf8_2byte_offset0 (capsys ):
72
73
msg = "\u07FF "
73
74
msg = "" + msg * (1024 // len (msg ) + 1 )
@@ -77,6 +78,7 @@ def test_captured_utf8_2byte_offset0(capsys):
77
78
assert stdout == msg
78
79
assert stderr == ""
79
80
81
+
80
82
def test_captured_utf8_2byte_offset1 (capsys ):
81
83
msg = "\u07FF "
82
84
msg = "1" + msg * (1024 // len (msg ) + 1 )
@@ -86,6 +88,7 @@ def test_captured_utf8_2byte_offset1(capsys):
86
88
assert stdout == msg
87
89
assert stderr == ""
88
90
91
+
89
92
def test_captured_utf8_3byte_offset0 (capsys ):
90
93
msg = "\uFFFF "
91
94
msg = "" + msg * (1024 // len (msg ) + 1 )
@@ -95,6 +98,7 @@ def test_captured_utf8_3byte_offset0(capsys):
95
98
assert stdout == msg
96
99
assert stderr == ""
97
100
101
+
98
102
def test_captured_utf8_3byte_offset1 (capsys ):
99
103
msg = "\uFFFF "
100
104
msg = "1" + msg * (1024 // len (msg ) + 1 )
@@ -104,6 +108,7 @@ def test_captured_utf8_3byte_offset1(capsys):
104
108
assert stdout == msg
105
109
assert stderr == ""
106
110
111
+
107
112
def test_captured_utf8_3byte_offset2 (capsys ):
108
113
msg = "\uFFFF "
109
114
msg = "12" + msg * (1024 // len (msg ) + 1 )
@@ -113,6 +118,7 @@ def test_captured_utf8_3byte_offset2(capsys):
113
118
assert stdout == msg
114
119
assert stderr == ""
115
120
121
+
116
122
def test_captured_utf8_4byte_offset0 (capsys ):
117
123
msg = "\U0010FFFF "
118
124
msg = "" + msg * (1024 // len (msg ) + 1 )
@@ -122,6 +128,7 @@ def test_captured_utf8_4byte_offset0(capsys):
122
128
assert stdout == msg
123
129
assert stderr == ""
124
130
131
+
125
132
def test_captured_utf8_4byte_offset1 (capsys ):
126
133
msg = "\U0010FFFF "
127
134
msg = "1" + msg * (1024 // len (msg ) + 1 )
@@ -131,6 +138,7 @@ def test_captured_utf8_4byte_offset1(capsys):
131
138
assert stdout == msg
132
139
assert stderr == ""
133
140
141
+
134
142
def test_captured_utf8_4byte_offset2 (capsys ):
135
143
msg = "\U0010FFFF "
136
144
msg = "12" + msg * (1024 // len (msg ) + 1 )
@@ -140,6 +148,7 @@ def test_captured_utf8_4byte_offset2(capsys):
140
148
assert stdout == msg
141
149
assert stderr == ""
142
150
151
+
143
152
def test_captured_utf8_4byte_offset3 (capsys ):
144
153
msg = "\U0010FFFF "
145
154
msg = "123" + msg * (1024 // len (msg ) + 1 )
@@ -149,6 +158,7 @@ def test_captured_utf8_4byte_offset3(capsys):
149
158
assert stdout == msg
150
159
assert stderr == ""
151
160
161
+
152
162
def test_guard_capture (capsys ):
153
163
msg = "I've been redirected to Python, I hope!"
154
164
m .guard_output (msg )
0 commit comments