Skip to content

Commit

Permalink
explicitly mark unicode strings for Python 2.7
Browse files Browse the repository at this point in the history
black only supports Python 3.x and removed unicode strings: this commit puts these essential
string prefixes back (otherwise Python 2.7 tests will not pass)
  • Loading branch information
orbeckst committed Sep 16, 2023
1 parent bd105a0 commit 825de45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/fileformats/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[
(100, 100),
("Jabberwock", "Jabberwock"),
("Ångström", "Ångström"),
(u"Ångström", u"Ångström"),
],
)
def test_to_unicode(s, expected):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_run_capture_stderr(self, command):
(
"not_used",
("not", "used"),
("unicode", "Ångström", "Planck_constant_over_two_π__ℏ"),
("unicode", u"Ångström", u"Planck_constant_over_two_π__ℏ"),
),
)
def test_run_with_input(self, command, inp):
Expand All @@ -67,7 +67,7 @@ def test_run_with_input(self, command, inp):
(
"not_used",
("not", "used"),
("unicode", "Ångström", "Planck_constant_over_two_π__ℏ"),
("unicode", u"Ångström", u"Planck_constant_over_two_π__ℏ"),
),
)
def test_Popen_with_input(self, command, inp):
Expand Down

0 comments on commit 825de45

Please sign in to comment.