Commit 7bddb5c5 authored by Sebastian Schwarz's avatar Sebastian Schwarz
Browse files

Fixed unit tests for test case 'test_all_examples'.

parent ad6ff347
Pipeline #490346 failed with stages
in 152 minutes and 25 seconds
......@@ -41,7 +41,7 @@ class TestExamples(unittest.TestCase):
for file in self.files:
filepath = os.path.join(self.example_dir, file)
example_name, file_ext = os.path.splitext(os.path.split(filepath)[-1])
if file_ext.lower() == '.py':
example_module = SourceFileLoader('main', filepath).load_module()
if file_ext.lower() == '.py' and example_name != '__init__':
example_module = SourceFileLoader(example_name, filepath).load_module()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment