Support testing in .../Lib/idlelib when calling <python PyShell.py>
by providing other modules access to globals set up in PyShell.main()
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 60fe3c2..3478004 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1299,4 +1299,5 @@
 """
 
 if __name__ == "__main__":
+    sys.modules['PyShell'] = sys.modules['__main__']
     main()