Fixed #1565 (quit() raises an error in KLayout Python Console)

This commit is contained in:
Matthias Koefferlein
2023-12-11 23:55:57 +01:00
parent 16766a21f9
commit 9525cfd1cd
2 changed files with 11 additions and 1 deletions
+8
View File
@@ -201,6 +201,14 @@ class KLayoutMain_TestClass < TestBase
out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12.rb")} 2>&1`
assert_equal(out, "Before exit()\n")
# sys.exit(0) - Python
out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12s.py")} 2>&1`
assert_equal(out, "Before exit()\n")
# quit() - Python (issue #1565)
out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12q.py")} 2>&1`
assert_equal(out, "Before quit()\n")
end
end