We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed95aa commit fb44581Copy full SHA for fb44581
test/Connection.py
@@ -13,6 +13,7 @@
13
14
import cx_Oracle
15
import random
16
+import string
17
import threading
18
19
class TestCase(TestEnv.BaseTestCase):
@@ -127,7 +128,9 @@ def testBadPassword(self):
127
128
129
def testChangePassword(self):
130
"test changing password"
- newPassword = "NEW_PASSWORD"
131
+ sysRandom = random.SystemRandom()
132
+ newPassword = "".join(sysRandom.choice(string.ascii_letters) \
133
+ for i in range(20))
134
connection = TestEnv.GetConnection()
135
connection.changepassword(TestEnv.GetMainPassword(), newPassword)
136
cconnection = cx_Oracle.connect(TestEnv.GetMainUser(), newPassword,
0 commit comments