Skip to content

Commit a717b3c

Browse files
committed
graalpytest.py: make load_module a regular method
1 parent 063c2b3 commit a717b3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

graalpython/com.oracle.graal.python.test/src/graalpytest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,7 @@ def find_conftest(test_module_path):
579579
return join(test_module_dir, "conftest.py")
580580
return None
581581

582-
@staticmethod
583-
def load_module(path):
582+
def load_module(self, path):
584583
name = path.rpartition("/")[2].partition(".")[0].replace('.py', '')
585584
directory = path.rpartition("/")[0]
586585
pkg = []
@@ -621,10 +620,10 @@ def load_module(path):
621620

622621
def test_modules(self):
623622
for testfile in self.testfiles:
624-
yield TestRunner.load_module(testfile)
623+
yield self.load_module(testfile)
625624

626625
def load_conftest(self, testfile):
627-
TestRunner.load_module(testfile)
626+
self.load_module(testfile)
628627

629628
def run(self):
630629
# eval session scope

0 commit comments

Comments
 (0)