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 6766feb commit 701dbf9Copy full SHA for 701dbf9
graalpython/com.oracle.graal.python.test/src/tests/test_posix.py
@@ -51,3 +51,13 @@ def test_uname(self):
51
self.assertIsNotNone(uname.release)
52
self.assertIsNotNone(uname.version)
53
self.assertIsNotNone(uname.machine)
54
+
55
+ def test_execv(self, tmpdir):
56
+ print tmpdir
57
58
+ sub = tmpdir.mkdir("sub")
59
+ sub.join("testfile.sh").write("echo \"something echo\" > {}/sub/test.txt".format(tmpdir))
60
+ import os
61
+ toExecute = tmpdir + '/testfile.sh'
62
+ os.execv(toExecute, [toExecute])
63
+ assert os.path.isfile(tmpdir + '/sub/test.txt')
0 commit comments