summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* whitespace normalisationAnthony Baxter2006-04-051-1/+1
|
* no-one but windows should expect startfile to workAnthony Baxter2006-04-051-0/+14
|
* we need os.path too for the normal run on windowsv2.5a1Neal Norwitz2006-04-041-3/+3
|
* Change the import statement so that the test is skipped whenThomas Heller2006-04-041-7/+8
| | | | os.startfile is not present.
* Add a simple test for os.startfile().Thomas Heller2006-04-042-0/+37
|
* Make xrange more Py_ssize_t aware, by assuming a Py_ssize_t is always atThomas Wouters2006-04-041-6/+1
| | | | | | | | | | | least as big as a long. I believe this to be a safe assumption that is being made in many parts of CPython, but a check could be added. len(xrange(sys.maxint)) works now, so fix the testsuite's odd exception for 64-bit platforms too. It also fixes 'zip(xrange(sys.maxint), it)' as a portable-ish (if expensive) alternative to enumerate(it); since zip() now calls len(), this was breaking on (real) 64-bit platforms. No additional test was added for that behaviour.
* Fix __import__("") to raise ValueError rather than return None.Thomas Wouters2006-04-041-0/+1
|
* Fix test_platform on cygwin. When running from build area, sys.executableAnthony Baxter2006-04-041-1/+6
| | | | | is 'python'. But 'python' is actually a directory, 'python.exe' is the executable.
* sqlite on Windows:Tim Peters2006-04-041-1/+0
| | | | | | | | - The buildbot "fetch it" step failed at the end, due to using Unix syntax in the final "copy the DLL" step. test_sqlite was skipped as a result. - test_sqlite is no longer an expected skip on Windows.
* Generate line number table entries for except handlers.Jeremy Hylton2006-04-041-25/+37
| | | | Re-enable all the tests in test_trace.py except one. Still not sure that these tests test what they used to test, but they pass. One failing test seems to be caused by undocumented line number table behavior in Python 2.4.
* cygwin's curses support isn't up to scratch to run the tests.Anthony Baxter2006-04-041-0/+3
|
* Remove debugging prints.Jeremy Hylton2006-04-041-4/+0
|
* Comment out the prints. These appear to be only for debugging purposes.Neal Norwitz2006-04-041-2/+4
| | | | Jeremy, please fix this correctly after the alpha.
* Add lineno, col_offset to excephandler to enable future fix forJeremy Hylton2006-04-041-5/+8
| | | | | | | | | | | | | | | tracing/line number table in except blocks. Reflow long lines introduced by col_offset changes. Update test_ast to handle new fields in excepthandler. As note in Python.asdl says, we might want to rethink how attributes are handled. Perhaps they should be the same as other fields, with the primary difference being how they are defined for all types within a sum. Also fix asdl_c so that constructors with int fields don't fail when passed a zero value.
* Fix SF#1462485: StopIteration raised in body of 'with' statement suppressedPhillip J. Eby2006-04-031-0/+56
|
* Add test case for #43581.Martin v. Löwis2006-04-031-0/+5
|
* Deal with openbsd's different style of default /etc/hosts by forcing the fqdnAnthony Baxter2006-04-031-1/+1
| | | | lookup to use the IP address returned by gethosbyname.
* Fix test_pty on OSF/1 (Tru64). The problem is that the newline getsNeal Norwitz2006-04-031-5/+23
| | | | | | | | | converted to CR CR NL. There may be a way to fix this with tcsetattr, but I couldn't find it. There was a similar problem on IRIX. Just normalize the output and compare that. Will backport.
* Skip the test for sys.stdin.seek(-1) on OSF/1 (Tru64) since it does Bad ThingsNeal Norwitz2006-04-031-5/+11
| | | | | | | | | like cause the interpreter to exit abruptly. If there's a way to fix this, it would be good to really fix it. It could just be the operation of the std C library and we just aren't supposed to do that. When the test case is skipped, we print a message so the user can check for themselves.
* Use absolute importsNeal Norwitz2006-04-034-4/+5
|
* Whitespace normalization.Tim Peters2006-04-032-3/+3
|
* Patch #1462790: fix urllib2 ProxyHandler for host:port proxiesGeorg Brandl2006-04-021-3/+21
|
* Patch #624325: urlparse.urlparse() and urlparse.urlsplit() resultsFred Drake2006-04-011-0/+101
| | | | now sport attributes that provide access to the parts of the result.
* patch #1462498: handle entityrefs in attribute values.Georg Brandl2006-04-011-0/+14
|
* Fix stupid typo.Tim Peters2006-04-011-1/+1
|
* test_timeout(): Disable this new test on all platforms.Tim Peters2006-04-011-4/+8
| | | | | | | | | The s.connect(("gmail.org", 995)) line has been timing out on all buildbot slaves for hours now, causing the test to fail.
* merged the sqlite-integration branch.Anthony Baxter2006-04-012-0/+32
| | | | | | | This is based on pysqlite2.1.3, and provides a DB-API interface in the standard library. You'll need sqlite 3.2.2 or later to build this - if you have an earlier version, the C extension module will not be built.
* Another crack at bug #1460340: make random.sample(dict)Tim Peters2006-04-011-2/+18
| | | | work, this time by ugly brute force.
* Make test_socket_ssl finally pass on WInGeorg Brandl2006-03-311-0/+3
|
* Disable test_socket_ssl timeout test on Windows.Georg Brandl2006-03-311-11/+13
|
* Patch #1460496: round() now accepts keyword arguments.Georg Brandl2006-03-311-0/+3
|
* Patch #1462313, bug #1443328: the pickle modules now can handle classesGeorg Brandl2006-03-311-0/+29
| | | | that have __private names in their __slots__.
* Patch #1380952: fix SSL objects timing out on consecutive read()sGeorg Brandl2006-03-311-0/+14
|
* Bug #1250170, Patch #1462230: handle socket.gethostname()Georg Brandl2006-03-311-4/+10
| | | | failures gracefully
* traceback now shows error position for all SyntaxError subclasses,Georg Brandl2006-03-311-0/+10
| | | | e.g. IndentationError. (bug #1447885)
* Fix the reference leak in test_generators, by explicitly breaking the cycleThomas Wouters2006-03-311-9/+19
| | | | | | we are about to leave behind. An example of the cause of this leak can be found in the leakers directory, in case we ever want to tackle the underlying problem.
* Bug #947906: An object oriented interface has been added to the calendarWalter Dörwald2006-03-311-34/+93
| | | | | module. It's possible to generate HTML calendar now and the module can be called as a script (e.g. via ``python -mcalendar``).
* test_main(): Restore the decimal context that was inTim Peters2006-03-311-10/+14
| | | | | | | | effect at the time test_decimal was imported. Else running test_decimal had the bad side effect of permanently changing the decimal context in effect. That caused text_tokenize to fail if it ran after test_decimal.
* Repaired a number of errors in this test:Tim Peters2006-03-311-60/+74
| | | | | | | | | | | | | | | | | | - The doctests in decistmt() weren't run at all when test_tokenize was run via regrtest.py. - Some expected output in decistmt() was Windows-specific (but nobody noticed because the doctests weren't getting run). - test_roundtrip() didn't actually test anything when running the tests with -O. Now it does. - Changed test_roundtrip() to show the name of the input file when it fails. That would have saved a lot of time earlier today. - Added a bunch of comments.
* SF patch #1458476 with modifications based on discussions in python-dev. ThisBarry Warsaw2006-03-301-1/+1
| | | | | | adds the following API calls: PySet_Clear(), _PySet_Next(), and _PySet_Update(). The latter two are considered non-public. Tests and documentation (for the public API) are included.
* Minor bugs in the __index__ code (PEP 357), with tests.Armin Rigo2006-03-301-95/+73
|
* whitespace normalisationAnthony Baxter2006-03-305-22/+21
|
* Checking in the test for PEP 357.Armin Rigo2006-03-301-0/+159
| | | | | | This is from the SF tracker as well; for some reason the content of test_index.py was lost and an empty file was checked in instead.
* Fixed bug #1459029 - unicode reprs were double-escaped.Anthony Baxter2006-03-301-0/+16
|
* SF bug #1460340: random.sample can raise KeyErrorRaymond Hettinger2006-03-291-0/+3
| | | | Fix the hit and miss style of testing for sets and dicts.
* Revert r43399.Georg Brandl2006-03-281-6/+6
|
* Bug #1459963: urllib2 now normalizes HTTP header names correctlyGeorg Brandl2006-03-281-6/+6
| | | | with title().
* Make test_augassign pass with -Qnew and convert to unittest.Georg Brandl2006-03-282-310/+325
|
* Make test_coercion pass with -Qnew. Converted to unittest on the occasion.Georg Brandl2006-03-282-1136/+242
|
* In true regression-test spirit, make sure theThomas Wouters2006-03-281-0/+29
| | | | | | | | itertools.tee->instance->attribute->itertools.tee and itertools.tee->teedataobject->itertools.tee cycles, which can be found now that itertools.tee and its teedataobject participate in GC, remain findable and cleanable. The test won't fail when they aren't, but at least the frequent hunt-refleaks runs would spot the rise in refleaks.