Skip to content

Commit

Permalink
Use Python 3 syntax in test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Mar 1, 2023
1 parent 56071c9 commit 1dcb735
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/messages/data/project/file1.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
def foo():
# TRANSLATOR: This will be a translator coment,
# that will include several lines
print _('bar')
print(_('bar'))
2 changes: 1 addition & 1 deletion tests/messages/data/project/file2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
def foo():
# Note: This will have the TRANSLATOR: tag but shouldn't
# be included on the extracted stuff
print ngettext('foobar', 'foobars', 1)
print(ngettext('foobar', 'foobars', 1))
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
def foo():
# Note: This will have the TRANSLATOR: tag but shouldn't
# be included on the extracted stuff
print ngettext('FooBar', 'FooBars', 1)
print(ngettext('FooBar', 'FooBars', 1))

0 comments on commit 1dcb735

Please sign in to comment.