##// END OF EJS Templates
Backport PR #10788: None...
Thomas Kluyver -
Show More
@@ -18,6 +18,7 b' import functools'
18 import os
18 import os
19 from os.path import join as pjoin
19 from os.path import join as pjoin
20 import random
20 import random
21 import string
21 import sys
22 import sys
22 import tempfile
23 import tempfile
23 import textwrap
24 import textwrap
@@ -415,8 +416,8 b' class TestMagicRunWithPackage(unittest.TestCase):'
415 f.write(textwrap.dedent(content))
416 f.write(textwrap.dedent(content))
416
417
417 def setUp(self):
418 def setUp(self):
418 self.package = package = 'tmp{0}'.format(repr(random.random())[2:])
419 self.package = package = 'tmp{0}'.format(''.join([random.choice(string.ascii_letters) for i in range(10)]))
419 """Temporary valid python package name."""
420 """Temporary (probably) valid python package name."""
420
421
421 self.value = int(random.random() * 10000)
422 self.value = int(random.random() * 10000)
422
423
General Comments 0
You need to be logged in to leave comments. Login now