Guido van Rossum
9c62772d5e
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 18:31:48 +00:00
Guido van Rossum
700bd92677
Fix a few places that broke due to a recent change to io.py.
2007-08-27 18:10:06 +00:00
Guido van Rossum
5abbf750a2
Changes to io.py and socket.py by Christian Heimes.
...
- Replace all asserts by ValuleErrors or TypeErrors as appropriate.
- Add _checkReadable, _checkWritable methods; these check self.closed too.
- Add a test that everything exported by io.py exists, and is either
an exception or an IOBase instance (except for the open function).
- Default buffering to 1 if isatty() (I had to tweak this to enforce
the *default* bit -- GvR).
2007-08-27 17:39:33 +00:00
Guido van Rossum
39478e8528
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 17:23:59 +00:00
Guido van Rossum
ba8c5653cc
> Regardless, building a fixed test certificate and checking it in sounds like
...
> the better option. Then the openssl command in the test code can be turned
> into a comment describing how the test data was pregenerated.
Here's a patch that does that.
Bill
2007-08-27 17:19:42 +00:00
Guido van Rossum
85825dc1ff
Changes preparing for stricter enforcement of bytes vs. str.
2007-08-27 17:03:28 +00:00
Facundo Batista
f91ad6a5da
Ignore test failures caused by 'resource temporarily unavailable'
...
exceptions raised in the test server thread, since SimpleXMLRPCServer
does not gracefully handle them. Changed number of requests handled
by tests server thread to one (was 2) because no tests require more
than one request. [GSoC - Alan McIntyre]
2007-08-27 01:15:34 +00:00
Neal Norwitz
9eb9b10751
If we can't create a certificate, print a warning, but don't fail the test.
...
Modified patch from what Bill Janssen sent on python-3000.
2007-08-27 01:15:33 +00:00
Neal Norwitz
3e533c2290
Make a utility function for handling (printing) an error
2007-08-27 01:03:18 +00:00
Neal Norwitz
f6f525b7c9
Stop using string.join (from the module) to ease upgrade to py3k
2007-08-27 00:58:33 +00:00
Guido van Rossum
19b4a272ea
Cosmetics in error messages.
2007-08-26 23:30:31 +00:00
Eric Smith
7ade6485ab
PEP 3101: Completed string.Formatter class. Reimplemented field_name to object transformation.
2007-08-26 22:27:13 +00:00
Neal Norwitz
d6a51e64d7
Another patch from Bill Janssen that:
...
1) Fixes the bug that two class names are initial-lower-case.
2) Replaces the poll waiting for the server to become ready with
a threading.Event signal.
2007-08-26 22:20:03 +00:00
Neal Norwitz
2bf4d5ba28
Use the correct variable name
2007-08-26 22:16:55 +00:00
Neal Norwitz
1b2f62d139
Catch IOError for when the device file doesn't exist or the user doesn't have
...
permission to write to the device.
2007-08-26 22:16:23 +00:00
Neal Norwitz
15d4e56c40
Get the test passing by commenting out some writes (should they be removed?)
2007-08-26 21:40:16 +00:00
Guido van Rossum
e760631421
When elapsed and expected time differ, at least show their two values.
2007-08-26 20:03:04 +00:00
Guido van Rossum
e472933e27
Bill Janssen wrote:
...
Here's a patch which makes test_ssl a better player in the buildbots
environment. I deep-ended on "try-except-else" clauses.
2007-08-26 19:35:09 +00:00
Neal Norwitz
7fc8e2993a
Fail gracefully if the cert files cannot be created
2007-08-26 18:50:39 +00:00
Neal Norwitz
93c56828a6
Use unicode (and bytes as appropriate)
2007-08-26 07:10:06 +00:00
Neal Norwitz
482043aed6
Reap children before the test starts so hopefully SocketServer
...
won't find any old children left around which causes an exception
in collect_children() and the test to fail.
2007-08-26 06:29:57 +00:00
Neal Norwitz
7e95befeda
Use unicode and stop supporting str8
2007-08-26 03:56:04 +00:00
Neal Norwitz
0337ef62fa
Get test working when there are multiple dbs supported.
2007-08-25 18:00:36 +00:00
Neal Norwitz
fe61bb9a59
Disable test until email comes back
2007-08-25 17:57:37 +00:00
Neal Norwitz
8e58b34ee8
Try to get this test to pass for systems that do not have SO_REUSEPORT
2007-08-25 17:25:17 +00:00
Neal Norwitz
cb51c6e953
Get test_pyclbr to pass after removing the email package
2007-08-25 17:23:06 +00:00
Neal Norwitz
ce7fa56aac
Fix test so it is skipped properly if there is no SSL support.
2007-08-25 16:54:38 +00:00
Guido van Rossum
4f2c3ddca4
Server-side SSL and certificate validation, by Bill Janssen.
...
While cleaning up Bill's C style, I may have cleaned up some code
he didn't touch as well (in _ssl.c).
2007-08-25 15:08:43 +00:00
Guido van Rossum
6398b7a351
Remove the email package for now.
...
Once Barry and the email-sig have a working new version
we'll add it back.
If it doesn't make the 3.0a deadline (release August 31), too bad.
2007-08-25 13:43:02 +00:00
Nick Coghlan
1a42ece0c7
Fix bug 1764407 - the -i switch now does the right thing when using the -m switch
2007-08-25 10:50:41 +00:00
Nick Coghlan
3af0e785e7
Revert misguided attempt at fixing incompatibility between -m and -i switches (better fix coming soon)
2007-08-25 04:32:07 +00:00
Eric Smith
8c66326368
Implementation of PEP 3101, Advanced String Formatting.
...
Known issues:
The string.Formatter class, as discussed in the PEP, is incomplete.
Error handling needs to conform to the PEP.
Need to fix this warning that I introduced in Python/formatter_unicode.c:
Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used
Need to make sure sign formatting is correct, more tests needed.
Need to remove '()' sign formatting, left over from an earlier version of the PEP.
2007-08-25 02:26:07 +00:00
Neal Norwitz
8d3654db22
Use unicode and add a "test" for syslog
2007-08-25 00:21:36 +00:00
Guido van Rossum
a401bbe5f0
Add a few mixed-mode (set vs. dict view) comparisons.
2007-08-24 23:51:55 +00:00
Guido van Rossum
cf2ce36fa2
Keir Mierle's improved tests for dict view containment tests.
2007-08-24 23:49:54 +00:00
Guido van Rossum
1d71996013
Add some mixed operations between sets and dict views.
2007-08-24 23:47:30 +00:00
Guido van Rossum
be534719da
Add unit tests for set ops on dict.items().
2007-08-24 23:43:52 +00:00
Guido van Rossum
523259ba07
Keir Mierle's set operations for dict views (keys/items only of course).
2007-08-24 23:41:22 +00:00
Guido van Rossum
aac530cdec
Patch with Keir Mierle: add rich comparisons between dict views and sets,
...
at least for .keys() and .items() (not .values() of course).
2007-08-24 22:33:45 +00:00
Gregory P. Smith
c3ee950979
follow up to bug 1007 commit.
...
Use self.assertTrue in test cases rather than the assert statement.
2007-08-24 22:14:21 +00:00
Gregory P. Smith
178fefb9b5
applies the better dbm and shelve related unittests. bug 1007 from larryhastings
2007-08-24 21:59:45 +00:00
Collin Winter
68f525fdc8
Make test_structmembers pass when run with regrtests's -R flag.
2007-08-24 21:09:42 +00:00
Georg Brandl
c325556505
Port test_class to unittest. Patch #1671298 .
2007-08-24 19:33:53 +00:00
Georg Brandl
ff9b963387
Catch the correct errors.
2007-08-24 19:22:34 +00:00
Collin Winter
11e065b37c
Convert test_pkg to use unittest.
2007-08-24 19:15:12 +00:00
Collin Winter
0f5e87a266
Convert test_pkg to use unittest.
2007-08-24 19:13:58 +00:00
Georg Brandl
fe3b4b9507
Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in test_ossaudiodev.
2007-08-24 18:46:27 +00:00
Georg Brandl
e7445de2b1
Remove output file for test_ossaudiodev, also properly close the dsp object.
2007-08-24 18:35:27 +00:00
Georg Brandl
0c6a438aea
Remove test_rgbimg output file, there is no test_rgbimg.py.
2007-08-24 18:30:06 +00:00
Georg Brandl
692bbc4790
Port test_frozen to unittest.
2007-08-24 18:22:54 +00:00