Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e8de24

Browse files
authored
Merge pull request#7145 from Icorebleidd/master
Fix duplicate assertion in test_utils_deprecate
1 parent0adc561 commit1e8de24

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎tests/test_utils_deprecate.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,12 @@ class OutdatedUserClass1a(DeprecatedName):
169169
classUnrelatedClass:
170170
pass
171171

172-
classOldStyleClass:
173-
pass
174-
175172
assertissubclass(UpdatedUserClass1,NewName)
176173
assertissubclass(UpdatedUserClass1a,NewName)
177174
assertissubclass(UpdatedUserClass1,DeprecatedName)
178175
assertissubclass(UpdatedUserClass1a,DeprecatedName)
179176
assertissubclass(OutdatedUserClass1,DeprecatedName)
180177
assertnotissubclass(UnrelatedClass,DeprecatedName)
181-
assertnotissubclass(OldStyleClass,DeprecatedName)
182-
assertnotissubclass(OldStyleClass,DeprecatedName)
183178
assertnotissubclass(OutdatedUserClass1,OutdatedUserClass1a)
184179
assertnotissubclass(OutdatedUserClass1a,OutdatedUserClass1)
185180

@@ -206,9 +201,6 @@ class OutdatedUserClass2a(DeprecatedName):
206201
classUnrelatedClass:
207202
pass
208203

209-
classOldStyleClass:
210-
pass
211-
212204
assertisinstance(UpdatedUserClass2(),NewName)
213205
assertisinstance(UpdatedUserClass2a(),NewName)
214206
assertisinstance(UpdatedUserClass2(),DeprecatedName)
@@ -218,7 +210,6 @@ class OldStyleClass:
218210
assertnotisinstance(OutdatedUserClass2a(),OutdatedUserClass2)
219211
assertnotisinstance(OutdatedUserClass2(),OutdatedUserClass2a)
220212
assertnotisinstance(UnrelatedClass(),DeprecatedName)
221-
assertnotisinstance(OldStyleClass(),DeprecatedName)
222213

223214
deftest_clsdict(self):
224215
withwarnings.catch_warnings():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp