summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___future__.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow both string and Unicode objects in levels.Martin v. Löwis2002-11-091-2/+2
|
* 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. :)
* Expose the CO_xxx flags via the "new" module (re-solving a problem "theTim Peters2001-08-181-0/+13
| | | | | | | | | | right way"). Fiddle __future__.py to use them. Jeremy's pyassem.py may also want to use them (by-hand duplication of magic numbers is brittle), but leaving that to his judgment. Beef up __future__'s test to verify the exported feature names appear correct.
* A self-contained piece of Michael Hudson's patchTim Peters2001-08-171-1/+6
| | | | | | | | | | | | | | #449043 supporting __future__ in simulated shells in support of PEP 264. Much has changed from the patch version: + Repaired bad hex constant for nested_scopes. + Defined symbolic CO_xxx names so global search will find these uses. + Made the exported list of feature names explicit, instead of abusing __all__ for this purpose (and redefined __all__ accordingly). + Added gross .compiler_flag verification to test___future__.py, and reworked it a little to make use of the newly exported explicit list of feature names.
* Make names in __future__.py bind to class instances instead of 2-tuples.Tim Peters2001-03-021-3/+2
| | | | Suggested on c.l.py by William Tanksley, and I like it.
* Add __future__.py to std library, + dull test to verify that assignmentsTim Peters2001-02-261-0/+42
therein are of the proper form.