mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-132396: Resolve 'redefinition of unused name' errors in `Lib/test/
` (#132397)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
4c3d187d9f
commit
1d5dc5f1c3
9 changed files with 22 additions and 26 deletions
|
@ -1352,7 +1352,7 @@ class TestSpecial(unittest.TestCase):
|
|||
red = 1
|
||||
green = 2
|
||||
blue = 3
|
||||
def red(self):
|
||||
def red(self): # noqa: F811
|
||||
return 'red'
|
||||
#
|
||||
with self.assertRaises(TypeError):
|
||||
|
@ -1360,7 +1360,7 @@ class TestSpecial(unittest.TestCase):
|
|||
@enum.property
|
||||
def red(self):
|
||||
return 'redder'
|
||||
red = 1
|
||||
red = 1 # noqa: F811
|
||||
green = 2
|
||||
blue = 3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue