Skip to content

Commit

Permalink
#10345 - Remove deprecated inspect.getargspec from sendmail tests. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed Oct 27, 2022
2 parents ede347c + 00bf5be commit de0bbee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/twisted/mail/test/test_smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,8 @@ def test_defaultReactorIsGlobalReactor(self):
The default C{reactor} parameter of L{twisted.mail.smtp.sendmail} is
L{twisted.internet.reactor}.
"""
args, varArgs, keywords, defaults = inspect.getargspec(smtp.sendmail)
fullSpec = inspect.getfullargspec(smtp.sendmail)
defaults = fullSpec[3]
self.assertEqual(reactor, defaults[2])

def _honorsESMTPArguments(self, username, password):
Expand Down
1 change: 1 addition & 0 deletions src/twisted/newsfragments/10345.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix SendmailTests for python 3.11.

0 comments on commit de0bbee

Please sign in to comment.