summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pkg.py
Commit message (Collapse)AuthorAgeFilesLines
* * Remove PRINT_ITEM(_TO), PRINT_NEWLINE(_TO) opcodes.Georg Brandl2007-02-091-40/+40
| | | | | | | * Fix some docstrings and one Print -> print. * Fix test_{class,code,descrtut,dis,extcall,parser,popen,pkg,subprocess,syntax,traceback}. These were the ones that generated code with a print statement. In most remaining failing tests there's an issue with the soft space.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-6/+6
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* Use explicit relative import for an, ehm, relative import.Thomas Wouters2006-04-181-1/+1
|
* tempfile's mkstemp(): Changed last argument fromTim Peters2002-08-141-1/+1
| | | | | | | | | | binary=True to text=False by BDFL Pronouncement. All other changes follow from this. The change to the docs is ready to go, but blocked by another JackMacLock in the doc directory.
* runtest(): I don't know why we don't just use TESTFN, but if we have toTim Peters2002-08-141-4/+5
| | | | | | | | | | | | | do bizarre things to get a temp file, I changed it to use mkstemp instead of NamedTemporaryFile. This tried to leave the file open while passing its name to execfile(). On Win2K (but not Win9X), though, a file created with O_TEMPORARY cannot be opened again, so the test failed with a permission error when execfile tried to open it. Closer to the truth: a file created with O_TEMPORARY can be opened again, but only if the file is also created with SHARE_DELETE access via the Win32 CreateFile() function. There's no way to get at that from MS's version of libc, though (we'd have to ditch the "std" C file functions in favor of Win32 API calls).
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-8/+7
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* 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. :)
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-27/+27
|
* String method conversion.Eric S. Raymond2001-02-091-2/+2
|
* Patch #103343: Allow the important test_pkg to succeed under Jython.Tim Peters2001-01-211-3/+3
|
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-5/+5
| | | | | | | 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.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-4/+4
|
* Applying patch #100994 to allow JPython to use more of the standardBarry Warsaw2000-09-011-5/+12
| | | | | | | | | | | | | Python test suite. Specifically, - import time instead of strop in test_b1 - test for ClassType of exceptions using isinstance instead of equality in test_exceptions - remove __builtins__ from dir() output in test_pkg test_pkg output needs to be regenerated.
* Apply SF patch #101135, adding 'import module as m' and 'from module importThomas Wouters2000-08-171-0/+27
| | | | | | | | name as n'. By doing some twists and turns, "as" is not a reserved word. There is a slight change in semantics for 'from module import name' (it will now honour the 'global' keyword) but only in cases that are explicitly undocumented.
* Test that "import sys.imp" fails as it should.Guido van Rossum1998-05-191-1/+12
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-35/+35
|
* Add empty __init__.py files to the test packages so the new policyGuido van Rossum1997-10-311-1/+4
| | | | will recognize them.
* Added test for __all__.Guido van Rossum1997-09-081-0/+15
|
* Fix details in the test:Guido van Rossum1997-09-071-3/+13
| | | | | | - traceback should go to stdout! - don't import ni, import t1! - nicer support for command line options, only if run as __main__
* Added feeble test for reload() of packages and submodules.Guido van Rossum1997-09-061-0/+3
|
* Test set for package import.Guido van Rossum1997-09-061-0/+183