From b470f59892873c3f2f64519fef31a7d94d526427 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 20 Dec 2016 14:08:57 +1100 Subject: [PATCH] tests/basics: Add test for builtin locals(). --- tests/basics/builtin_locals.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/basics/builtin_locals.py diff --git a/tests/basics/builtin_locals.py b/tests/basics/builtin_locals.py new file mode 100644 index 0000000000..3689216ef6 --- /dev/null +++ b/tests/basics/builtin_locals.py @@ -0,0 +1,4 @@ +# test builtin locals() + +x = 123 +print(locals()['x'])