summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_uuid.py
Commit message (Collapse)AuthorAgeFilesLines
* Make uuid1 and uuid4 tests conditional on whether ctypes can be imported;Brett Cannon2007-09-071-0/+12
| | | | | implementation of either function depends on ctypes but uuid as a whole does not.
* Bug #1541863: uuid.uuid1 failed to generate unique identifiersMartin v. Löwis2006-08-181-1/+1
| | | | on systems with low clock resolution.
* Update code and tests to support the 'bytes_le' attribute (forKa-Ping Yee2006-08-161-36/+61
| | | | | | | little-endian byte order on Windows), and to work around clocks with low resolution yielding duplicate UUIDs. Anthony Baxter has approved this change.
* Whitespace normalization.Tim Peters2006-07-301-3/+3
|
* Disable test_getnode too, since this is also unreliable.Neal Norwitz2006-07-291-0/+6
|
* Disable these tests until they are reliable across platforms.Neal Norwitz2006-07-291-0/+12
| | | | | | | These problems may mask more important, real problems. One or both methods are known to fail on: Solaris, OpenBSD, Debian, Ubuntu. They pass on Windows and some Linux boxes.
* Live with that "the hardware address" is an ill-definedTim Peters2006-07-281-4/+12
| | | | | | | concept, and that different ways of trying to find "the hardware address" may return different results. Certainly true on both of my Windows boxes, and in different ways (see whining on python-dev).
* check_node(): stop spraying mystery output to stderr.Tim Peters2006-07-271-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a node number disagrees, keep track of all sources & the node numbers they reported, and stick all that in the error message. Changed all callers to supply a non-empty "source" argument; made the "source" argument non-optional. On my box, test_uuid still fails, but with the less confusing output: AssertionError: different sources disagree on node: from source 'getnode1', node was 00038a000015 from source 'getnode2', node was 00038a000015 from source 'ipconfig', node was 001111b2b7bf Only the last one appears to be correct; e.g., C:\Code\python\PCbuild>getmac Physical Address Transport Name =================== ========================================================== 00-11-11-B2-B7-BF \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1} 62-A1-AC-6C-FD-BE \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A} E2-1F-01-C6-5D-88 \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4} I can't find anything on my box with MAC 00-03-8a-00-00-15, and am not clear on where that comes from.
* Make uuid test suite pass on this box by requesting output with LC_ALL=C.Georg Brandl2006-07-271-2/+6
|
* Add test_main() methods. These three tests were never runGeorg Brandl2006-07-271-2/+7
| | | | | | by regrtest.py. We really need a simpler testing framework.
* Added missing svn:eol-style property to text files.Tim Peters2006-06-131-396/+396
|
* Whitespace normalization.Tim Peters2006-06-131-396/+396
|
* Add the uuid module.Ka-Ping Yee2006-06-121-0/+396
This module has been tested so far on Windows XP (Python 2.4 and 2.5a2), Mac OS X (Python 2.3, 2.4, and 2.5a2), and Linux (Python 2.4 and 2.5a2).