Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7abaf64

Browse files
committed
Change test function names to match code style
1 parent 73e5e65 commit 7abaf64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_structseq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_copy_replace_all_fields_visible(self):
156156
with self.assertRaisesRegex(ValueError, 'unexpected field name'):
157157
copy.replace(t, user=1, error=-1)
158158

159-
def test_copy_replace_has_invisible_fields(self):
159+
def test_copy_replace_with_invisible_fields(self):
160160
t = time.gmtime(0)
161161
assert t.n_unnamed_fields == 0 and t.n_sequence_fields < t.n_fields
162162

@@ -189,7 +189,7 @@ def test_copy_replace_has_invisible_fields(self):
189189
with self.assertRaisesRegex(ValueError, 'unexpected field name'):
190190
copy.replace(t, tm_zone='some other zone', error=2)
191191

192-
def test_copy_replace_has_unnamed_fields(self):
192+
def test_copy_replace_with_unnamed_fields(self):
193193
assert os.stat_result.n_unnamed_fields > 0
194194
r = os.stat_result(range(os.stat_result.n_sequence_fields))
195195
with self.assertRaisesRegex(TypeError, '__replace__() is not supported'):

0 commit comments

Comments
 (0)