diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_regressions.py
+++ b/tests/unit/test_regressions.py
@@ -1520,8 +1520,8 @@ def test_isort_adding_second_comma_issue_1621():
 def test_isort_shouldnt_duplicate_comments_issue_1631():
     assert isort.check_code(
         """
-import a # a comment
-import a as b # b comment
+import a  # a comment
+import a as b  # b comment
 """,
         show_diff=True,
     )
Update test to use correct spacing for comments