Skip to content
Snippets Groups Projects
Commit 96408975 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

removed custom exception class

parent 25a058e2
No related branches found
No related tags found
1 merge request!6More Work on infrastructure IV
...@@ -35,7 +35,8 @@ class ErrorGenerator(ABC): ...@@ -35,7 +35,8 @@ class ErrorGenerator(ABC):
@abstractmethod @abstractmethod
def generate(self, generate_full_set): def generate(self, generate_full_set):
""" """
Abstract method to generate error cases. The cases should be yielded instead of returned Abstract method to generate error cases. Implemented as a python generator.
Meaning that the cases should be yielded instead of returned
Parameters: Parameters:
- generate_full_set: if the generator should generate the extended full set of cases. - generate_full_set: if the generator should generate the extended full set of cases.
...@@ -45,8 +46,3 @@ class ErrorGenerator(ABC): ...@@ -45,8 +46,3 @@ class ErrorGenerator(ABC):
""" """
pass pass
class CorrectTestcase (BaseException):
# exception class to be raised by generators if they generate a correct case
pass
...@@ -8,7 +8,7 @@ import subprocess ...@@ -8,7 +8,7 @@ import subprocess
# for printing a nice progress bar # for printing a nice progress bar
import tqdm import tqdm
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator, CorrectTestcase from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
from scripts.Infrastructure.Template import TemplateManager from scripts.Infrastructure.Template import TemplateManager
from scripts.Infrastructure.Variables import featurelist from scripts.Infrastructure.Variables import featurelist
......
#! /usr/bin/python3 #! /usr/bin/python3
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator, CorrectTestcase from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
from scripts.Infrastructure.InstructionBlock import InstructionBlock from scripts.Infrastructure.InstructionBlock import InstructionBlock
from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory
from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv
......
#! /usr/bin/python3 #! /usr/bin/python3
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator, CorrectTestcase from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
from scripts.Infrastructure.InstructionBlock import InstructionBlock from scripts.Infrastructure.InstructionBlock import InstructionBlock
from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory
from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv
......
#! /usr/bin/python3 #! /usr/bin/python3
from scripts.Infrastructure.ErrorGenerator import ErrorGenerator, CorrectTestcase from scripts.Infrastructure.ErrorGenerator import ErrorGenerator
from scripts.Infrastructure.InstructionBlock import InstructionBlock from scripts.Infrastructure.InstructionBlock import InstructionBlock
from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory from scripts.Infrastructure.MPICallFactory import MPICallFactory, CorrectMPICallFactory
from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv from scripts.Infrastructure.CorrectParameter import CorrectParameterFactory, get_matching_recv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment