Skip to content

Commit

Permalink
tests: Apply pyupgrade suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored and adrienverge committed Sep 14, 2023
1 parent 41ec303 commit 3e64372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def utf8_available():
class CommandLineTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
super(CommandLineTestCase, cls).setUpClass()
super().setUpClass()

cls.wd = build_temp_workspace({
# .yaml file at root
Expand Down Expand Up @@ -97,7 +97,7 @@ def setUpClass(cls):
'- hétérogénéité\n'
'# 19.99 €\n'
'- お早う御座います。\n'
'# الأَبْجَدِيَّة العَرَبِيَّة\n').encode('utf-8'),
'# الأَبْجَدِيَّة العَرَبِيَّة\n').encode(),
# dos line endings yaml
'dos.yml': '---\r\n'
'dos: true',
Expand All @@ -112,7 +112,7 @@ def setUpClass(cls):

@classmethod
def tearDownClass(cls):
super(CommandLineTestCase, cls).tearDownClass()
super().tearDownClass()

shutil.rmtree(cls.wd)

Expand Down

0 comments on commit 3e64372

Please sign in to comment.