Merge pull request #908 from cpennington/reference-runtime

Replace references to .system
This commit is contained in:
Calen Pennington
2013-09-18 05:43:20 -07:00
4 changed files with 5 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ class ErrorDescriptor(ErrorFields, XModuleDescriptor):
@classmethod
def from_descriptor(cls, descriptor, error_msg='Error not available'):
return cls._construct(
descriptor.system,
descriptor.runtime,
str(descriptor),
error_msg,
location=descriptor.location,

View File

@@ -37,7 +37,7 @@ class TestErrorModule(unittest.TestCase, SetupTestErrorModules):
def test_error_module_from_descriptor(self):
descriptor = MagicMock([XModuleDescriptor],
system=self.system,
runtime=self.system,
location=self.location,
_field_data=self.valid_xml)
@@ -72,7 +72,7 @@ class TestNonStaffErrorModule(unittest.TestCase, SetupTestErrorModules):
def test_error_module_from_descriptor(self):
descriptor = MagicMock([XModuleDescriptor],
system=self.system,
runtime=self.system,
location=self.location,
_field_data=self.valid_xml)