summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grammar.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow 'continue' inside 'try' clauseJeremy Hylton2001-02-011-0/+19
| | | | SF patch 102989 by Thomas Wouters
* Undo recent change that banned using import to bind a global, as perJeremy Hylton2001-02-011-1/+0
| | | | | | | | | | | discussion on python-dev. 'from mod import *' is still banned except at the module level. Fix value for special NOOPT entry in symtable. Initialze to 0 instead of None, so that later uses of PyInt_AS_LONG() are valid. (Bug reported by Donn Cave.) replace local REPR macros with PyObject_REPR in object.h
* add test for illegal importsJeremy Hylton2001-01-301-0/+2
|
* PEP 227 implementationJeremy Hylton2001-01-251-0/+14
| | | | | test_new: new.code() noew takes two more arguments test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
* add extra tests to verify that co_varnames is being set up properlyJeremy Hylton2001-01-251-22/+19
| | | | | also normalize checks for syntax errors and delete commented out definition of verify.
* Add simple test of list comprehension that uses a name that isn'tJeremy Hylton2001-01-231-0/+6
| | | | | otherwise used in the same code block. (Not sure this is the right place, but there is no test_list_comprehensions.py.)
* make error msg more informative when test of exec failsJeremy Hylton2001-01-191-1/+1
|
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-10/+10
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-10/+10
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-90/+90
|
* Added test cases for extended printing to an instance. This picked upBarry Warsaw2000-10-111-1/+9
| | | | a bug in JPython where the instance had to have a flush() method.
* This patch adds a new Python C API called PyString_AsStringAndSize()Marc-André Lemburg2000-09-191-0/+7
| | | | | | | | | | | | | which implements the automatic conversion from Unicode to a string object using the default encoding. The new API is then put to use to have eval() and exec accept Unicode objects as code parameter. This closes bugs #110924 and #113890. As side-effect, the traditional C APIs PyString_Size() and PyString_AsString() will also accept Unicode objects as parameters.
* Added tests of "print >> None"Barry Warsaw2000-08-291-0/+25
|
* require list comprehensions to start with a for clauseSkip Montanaro2000-08-221-0/+6
|
* PEP 214, Extended print Statement, has been accepted by the BDFL.Barry Warsaw2000-08-211-0/+19
| | | | Additional test cases for the extended print form.
* list comprehensions. seeSkip Montanaro2000-08-121-0/+40
| | | | | | http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470 for details.
* add test cases for Greg Ewing's extended call syntax patchJeremy Hylton2000-03-281-2/+33
|
* No need to define assert, it's built in.Guido van Rossum1997-04-161-2/+2
|
* avoid math, don't abort when overflow check failsGuido van Rossum1995-03-041-3/+4
|
* Fix exec test so presence of __builtins__ doesn't break itGuido van Rossum1995-01-101-0/+3
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-17/+103
|
* Some minute changes.Guido van Rossum1993-12-291-3/+21
|
* * test_select.py: (some) tests for built-in select moduleGuido van Rossum1993-11-111-0/+16
| | | | | | * test_grammar.py, testall.out: added test for funny things in string literals * token.py, symbol.py: definitions used with built-in parser module. * tokenize.py: added double-quote recognition
* * string.py: added rindex(), rfind(); changed index() to interpretGuido van Rossum1993-11-081-10/+13
| | | | | | | | | | | negative start indices starting from the right. * ftplib.py: debug() -> set_debuglevel(); change demo to use __init__(). * os.py: added execl, execlp, and execvp. * lambda.py: removed (now that we have built-in map, reduce, bagof, lambda) * test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce * commands.py: use os, not posix * test_grammar.py: make it easy to disable non-portable int overflow tests * dis.py: don't abuse range()
* added builtin b/w compat module.Guido van Rossum1993-10-221-1/+20
| | | | changed testing of exec.
* Added some new tests and two new files for testing: test_types.pyGuido van Rossum1992-11-271-6/+33
| | | | | (testing operations on built-in types) and autotest.py (automatic regression testing).
* '+' no longer accepted for varargs listGuido van Rossum1992-04-031-1/+1
|
* Some weird forms of try statements are no longer allowed.Guido van Rossum1992-03-311-5/+1
|
* Initial revisionGuido van Rossum1992-01-271-0/+344