diff options
authorHolger Hans Peter Freyther <>2019-02-27 04:34:28 +0000
committerHolger Hans Peter Freyther <>2019-02-27 08:09:21 +0000
commit1ea4e52f9f2a6093b5850c38cf2f6e07e7b3a515 (patch)
parent34dce0edb1eafd1bb81d80d6bbb97ae1fd13c30b (diff)
pyflakes: Remove occurrences of using undefined variables
Mention the attribute right away and remove a method that looks to have been broken (more vs. more_rules). Change-Id: Iba18a96ff804780e66c69b459e112f9d42b7b2ff
2 files changed, 1 insertions, 6 deletions
diff --git a/src/osmo_gsm_tester/ b/src/osmo_gsm_tester/
index 5fe8bae..4cdb98e 100644
--- a/src/osmo_gsm_tester/
+++ b/src/osmo_gsm_tester/
@@ -92,7 +92,7 @@ class NanoBts(bts.Bts):
def start(self, keepalive=False):
if self.conf.get('ipa_unit_id') is None:
- raise log.Error('No attribute %s provided in conf!' % attr)
+ raise log.Error('No attribute ipa_unit_id provided in conf!')
self.run_dir = util.Dir(self.suite_run.get_test_run_dir().new_dir(
diff --git a/src/osmo_gsm_tester/ b/src/osmo_gsm_tester/
index 29f641e..98651ce 100644
--- a/src/osmo_gsm_tester/
+++ b/src/osmo_gsm_tester/
@@ -395,11 +395,6 @@ class Resources(dict):
raise RuntimeError('adding a list of resources to itself?')
config.add(self, copy.deepcopy(more))
- def combine(self, more_rules):
- if more_rules is self:
- raise RuntimeError('combining a list of resource rules with itself?')
- config.combine(self, copy.deepcopy(more))
def mark_reserved_by(self, origin_id):
for key, item_list in self.items():
for item in item_list: