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