Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add quotes to code to be a string
  • Loading branch information
csabella authored Jun 9, 2020
commit e913cbe34cc7b625f5eaf46abd550bfe8c269281
2 changes: 1 addition & 1 deletion Lib/test/test_codeop.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def test_filename(self):
def test_warning(self):
# Test that the warning is only returned once.
with support.check_warnings((".*invalid", DeprecationWarning)) as w:
compile_command("\e")
compile_command("'\e'")
self.assertEqual(len(w.warnings), 1)

if __name__ == "__main__":
Expand Down