Skip to content

Commit 6b70013

Browse files
committed
Fixes a copy-and-paste error in JS and PY with regard to installing tear downs. Removes unused functions from JS version
1 parent bd28869 commit 6b70013

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

ports-js/ports.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,10 @@ inval
172172
this.rootCapability[2].unshift(new PortsSetup(func, this.schemeEnv));
173173
});
174174
this.tearDownFunctions.forEach(func => {
175-
this.rootCapability[2].unshift(new PortsTearDown(func, this.schemeEnv));
175+
this.rootCapability[3].unshift(new PortsTearDown(func, this.schemeEnv));
176176
});
177177
}
178178

179-
generateTestMethod(portsTest) {
180-
return () => this.runTest(portsTest);
181-
}
182-
183-
runTest(portsTest) {
184-
console.log(this.evalSchemeWithArgs("(test-name current_test)", {current_test: portsTest}));
185-
return this.evalSchemeWithArgs("(test-run current_test)", {current_test: portsTest});
186-
}
187-
188179
run({only = null, onlyCapabilities = null, exclude = null, excludeCapabilities = null, expectedFailures = []} = {}) {
189180
this.initializeSuite();
190181
this.installSetUpTearDownFunctions();

ports-py/ports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def install_setUp_tearDown_functions(self):
164164
for func in self.setUp_functions:
165165
self.root_capability[2].insert(0, PortsSetup(func, self.lispy_env))
166166
for func in self.tearDown_functions:
167-
self.root_capability[2].insert(0, PortsTearDown(func, self.lispy_env))
167+
self.root_capability[3].insert(0, PortsTearDown(func, self.lispy_env))
168168

169169
def generate_test_name(self, ports_test):
170170
return self.eval_with_args("(test-full-name current_test)", current_test=ports_test)

0 commit comments

Comments
 (0)