Skip to content
Closed
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
Next Next commit
fix syntax error at the test
  • Loading branch information
isidentical committed Oct 10, 2020
commit da49fbfecffebfa455fdaca66783b4fae4a91daa
2 changes: 1 addition & 1 deletion Lib/test/test_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_field_defaults(self):

func3 = ast.FunctionDef(body=[1])
self.assertEqual(func3.body, [1])
self.assertFalse(hasattr(func3, "body")
self.assertFalse(hasattr(func3, "name"))
self.assertTrue(hasattr(func3, "returns"))

def test_field_attr_writable(self):
Expand Down