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