Skip to content

Commit

Permalink
Swap f string for format to support old py
Browse files Browse the repository at this point in the history
  • Loading branch information
radiac committed Dec 3, 2020
1 parent 13c1282 commit c1b73ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def setUpExtra(self):
self.tags_model = self.model.tags.tag_model
self.fixture_name = "test_fixtures.%s" % self.fixture_format
self.fixture_path = os.path.join(
fixture_root, f"{self.fixture_prefix}_{self.fixture_name}"
fixture_root, "{}_{}".format(self.fixture_prefix, self.fixture_name)
)

# Need to dump to loadable file due to django#24558
Expand Down Expand Up @@ -216,7 +216,7 @@ def setUpExtra(self):
self.tag_model = test_models.MixedNonTagModel
self.fixture_name = "test_fixtures.%s" % self.fixture_format
self.fixture_path = os.path.join(
fixture_root, f"{self.fixture_prefix}_{self.fixture_name}"
fixture_root, "{}_{}".format(self.fixture_prefix, self.fixture_name)
)

# Need to dump to loadable file due to django#24558
Expand Down

0 comments on commit c1b73ea

Please sign in to comment.