@@ -2574,7 +2574,7 @@ def check_outcome_details_to_exec_info(self, outcome, expected=None):
25742574 # of the text types in the details dict.
25752575 if not expected :
25762576 expected = outcome
2577- details , err_str = self .get_details_and_string ()
2577+ details , _err_str = self .get_details_and_string ()
25782578 getattr (self .converter , outcome )(self , details = details )
25792579 err = self .converter ._details_to_exc_info (details )
25802580 self .assertEqual ([(expected , self , err )], self .result ._events )
@@ -3079,7 +3079,7 @@ def test_syntax_error_malformed(self):
30793079
30803080 def test_syntax_error_line_iso_8859_1 (self ):
30813081 """Syntax error on a latin-1 line shows the line decoded"""
3082- text , raw = self ._get_sample_text ("iso-8859-1" )
3082+ text , _raw = self ._get_sample_text ("iso-8859-1" )
30833083 textoutput = self ._setup_external_case ("import bad" )
30843084 self ._write_module (
30853085 "bad" , "iso-8859-1" , f"# coding: iso-8859-1\n ! = 0 # { text } \n "
@@ -3095,7 +3095,7 @@ def test_syntax_error_line_iso_8859_1(self):
30953095
30963096 def test_syntax_error_line_iso_8859_5 (self ):
30973097 """Syntax error on a iso-8859-5 line shows the line decoded"""
3098- text , raw = self ._get_sample_text ("iso-8859-5" )
3098+ text , _raw = self ._get_sample_text ("iso-8859-5" )
30993099 textoutput = self ._setup_external_case ("import bad" )
31003100 self ._write_module (
31013101 "bad" , "iso-8859-5" , f"# coding: iso-8859-5\n % = 0 # { text } \n "
@@ -3118,7 +3118,7 @@ def test_syntax_error_line_iso_8859_5(self):
31183118
31193119 def test_syntax_error_line_euc_jp (self ):
31203120 """Syntax error on a euc_jp line shows the line decoded"""
3121- text , raw = self ._get_sample_text ("euc_jp" )
3121+ text , _raw = self ._get_sample_text ("euc_jp" )
31223122 textoutput = self ._setup_external_case ("import bad" )
31233123 self ._write_module ("bad" , "euc_jp" , f"# coding: euc_jp\n $ = 0 # { text } \n " )
31243124 textoutput = self ._run_external_case ()
@@ -3139,7 +3139,7 @@ def test_syntax_error_line_euc_jp(self):
31393139
31403140 def test_syntax_error_line_utf_8 (self ):
31413141 """Syntax error on a utf-8 line shows the line decoded"""
3142- text , raw = self ._get_sample_text ("utf-8" )
3142+ text , _raw = self ._get_sample_text ("utf-8" )
31433143 textoutput = self ._setup_external_case ("import bad" )
31443144 self ._write_module ("bad" , "utf-8" , f"\ufeff ^ = 0 # { text } \n " )
31453145 textoutput = self ._run_external_case ()
0 commit comments