mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
Get rid of imp, started giving deprecation warning every time in Python 3.7 in Ubuntu 19.04.
Please python stop torturing me with refactors. Make ./run -u blow up if executable not found, otherwise I go crazy. Get ./test-gdb back to life after the ./run relative path refactor, forgot to test this.
This commit is contained in:
3
run-gdb
3
run-gdb
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import imp
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
@@ -34,7 +33,7 @@ class GdbTestcase:
|
||||
self.child.setecho(False)
|
||||
self.child.waitnoecho()
|
||||
self.child.expect(self.prompt)
|
||||
test = imp.load_source('test', test_script_path)
|
||||
test = common.import_path(test_script_path)
|
||||
exception = None
|
||||
try:
|
||||
test.test(self)
|
||||
|
||||
Reference in New Issue
Block a user