summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-07 13:42:52 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-07 13:42:52 (GMT)
commit6179fe6a08200649387393f281fe2be6d546418a (patch)
tree760d3f195d6bc6c9301fffcb5fab8d121898222c /Lib
parentfac38b7c40caac93f119e3af90ced0edd3d963dc (diff)
downloadcpython-6179fe6a08200649387393f281fe2be6d546418a.zip
cpython-6179fe6a08200649387393f281fe2be6d546418a.tar.gz
cpython-6179fe6a08200649387393f281fe2be6d546418a.tar.bz2
Don't us sys.ps1 and sys.ps2.
Exercise trailing comma in tuples.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/testall.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/test/testall.py b/Lib/test/testall.py
index ef7cb13..da2d884 100644
--- a/Lib/test/testall.py
+++ b/Lib/test/testall.py
@@ -122,7 +122,7 @@ from time import sleep
[4]
from math import *
[5]
-from sys import modules, ps1, ps2
+from sys import modules, path
[6]
### compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
@@ -213,7 +213,7 @@ print 'factor' # ('+'|'-') factor | atom trailer*
x = +1
x = -1
x = 1
-c = sys.ps1[0]
+c = sys.path[0]
x = time.time()
x = sys.modules['time'].time()
a = '01234'
@@ -243,7 +243,11 @@ x = 123
### exprlist: expr (',' expr)* [',']
### testlist: test (',' test)* [',']
-# These have been exercised enough above
+# These have been exercised already above, except for trailing comma:
+x = 1, 2, 3,
+x = 1,
+x = (1 and 2, 1 or 2,)
+x = (not 1,)
print 'classdef' # 'class' NAME parameters ['=' baselist] ':' suite
### baselist: atom arguments (',' atom arguments)*