Commits

Anonymous committed 423be87

Don't us sys.ps1 and sys.ps2.
Exercise trailing comma in tuples.

Comments (0)

Files changed (1)

Lib/test/testall.py

 [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
 x = +1
 x = -1
 x = 1
-c = sys.ps1[0]
+c = sys.path[0]
 x = time.time()
 x = sys.modules['time'].time()
 a = '01234'
 
 ### 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)*