patch 8.2.0347: various code not covered by tests

Problem:    Various code not covered by tests.
Solution:   Add more test coverage. (Yegappan Lakshmanan, closes #5720)
diff --git a/src/testdir/test86.in b/src/testdir/test86.in
index 6a26189..c706a3d 100644
--- a/src/testdir/test86.in
+++ b/src/testdir/test86.in
@@ -1156,7 +1156,7 @@
 :$put =string(pyeval('dd') is# pyeval('dd'))
 :$put =string(pyeval('df'))
 :delfunction Put
-py << EOF
+py <<
 del DupDict
 del DupList
 del DupFun
@@ -1164,7 +1164,7 @@
 del dl
 del dl2
 del df
-EOF
+.
 :"
 :" Test chdir
 py << EOF