##// END OF EJS Templates
Fix random test failure....
Matthias Bussonnier -
Show More
@@ -17,6 +17,7 b' import functools'
17 import os
17 import os
18 from os.path import join as pjoin
18 from os.path import join as pjoin
19 import random
19 import random
20 import string
20 import sys
21 import sys
21 import textwrap
22 import textwrap
22 import unittest
23 import unittest
@@ -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