summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_future.py
Commit message (Collapse)AuthorAgeFilesLines
* SF #736962, port test_future to unittest, add a bit more coverage, by Walter ↵Neal Norwitz2003-12-131-32/+74
| | | | Dörwald
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-8/+8
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Fix SF bug [ #450245 ] Error in parsing future stmtsJeremy Hylton2001-08-201-0/+3
| | | | | Add test case to cover multiple future statements on separate lines of a module.
* Fix compileall.py so that it fails on SyntaxErrorsJeremy Hylton2001-04-181-5/+5
| | | | | | | | | | | | | | | | | | | | | The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. In the test suite, rename nocaret.py and test_future[3..7].py to start with badsyntax_nocaret.py and badsyntax_future[3..7].py. Update the makefile to skip compilation of these files. Update the tests to use the name names for imports. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
* Whitespace normalization.Tim Peters2001-03-011-1/+0
|
* Add regression test for future statements. This adds eight files, butJeremy Hylton2001-02-281-0/+45
seven are not tests in their own right; these files are mentioned in regrtest.