We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b0db8 commit 310d1d1Copy full SHA for 310d1d1
1 file changed
openml/testing.py
@@ -5,6 +5,8 @@
5
import unittest
6
import openml
7
8
+import numpy as np
9
+
10
11
class TestBase(unittest.TestCase):
12
"""Base class for tests
@@ -47,6 +49,8 @@ def setUp(self):
47
49
md5 = hashlib.md5()
48
50
md5.update(apikey.encode('utf-8'))
51
md5.update(str(pid).encode('utf-8'))
52
+ random_number = np.random.randint(1000000000)
53
+ md5.update(str(random_number).encode('utf-8'))
54
sentinel = md5.hexdigest()
55
# For testing the hash code mustn't be bulletproof
56
self.sentinel = '%sTESTSENTINEL999' % sentinel[:8]
0 commit comments