Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(41766)

Unified Diff: Lib/test/test_uuid.py

Issue 20519: ctypes.create_string_buffer creates reference cycles
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/uuid.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_uuid.py Wed Feb 05 10:33:14 2014 -0500
+++ b/Lib/test/test_uuid.py Wed Oct 28 13:29:38 2015 +0000
@@ -339,11 +339,19 @@
@unittest.skipUnless(os.name == 'posix', 'requires Posix')
@unittest.skipUnless(importable('ctypes'), 'requires ctypes')
def test_unixdll_getnode(self):
+ if uuid._uuid is not None:
+ self.skipTest("_uuid extension was imported, ctypes not used")
try: # Issues 1481, 3581: _uuid_generate_time() might be None.
self.check_node(uuid._unixdll_getnode(), 'unixdll')
except TypeError:
pass
+ @unittest.skipUnless(os.name == 'posix', 'requires Posix')
+ def test_unix_extmod_getnode(self):
+ if uuid._uuid is None:
+ self.skipTest("_uuid extension was not imported")
+ self.check_node(uuid._unix_extmod_getnode(), 'unix_extmod')
+
@unittest.skipUnless(os.name == 'nt', 'requires Windows')
@unittest.skipUnless(importable('ctypes'), 'requires ctypes')
def test_windll_getnode(self):
« no previous file with comments | « no previous file | Lib/uuid.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+