Skip to content

Commit

Permalink
tests: Apply pyupgrade suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 12, 2023
1 parent 40ce4c2 commit d9ff94f
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 d9ff94f

Please sign in to comment.