055a36d3de496e8367956ac573041f90a063d44f,tests/python/pants_test/option/test_options.py,OptionsTest,test_deprecated_option_past_removal,#OptionsTest#,587
Before Change
def test_deprecated_option_past_removal(self):
with self.assertRaises(PastRemovalVersionError):
options = Options.create(env={},
config=self._create_config({}),
known_scope_infos=OptionsTest._known_scope_infos,
args="./pants",
option_tracker=OptionTracker())
options.register(GLOBAL_SCOPE, "--too-old-option", deprecated_version="0.0.24",
deprecated_hint="The semver for this option has already passed.")
options.for_global_scope()
After Change
def test_deprecated_option_past_removal(self):
Ensure that expired options raise DeprecatedOptionError on attempted use.
with self.assertRaises(DeprecatedOptionError):
self._parse("./pants --global-crufty-expired=way2crufty").for_global_scope()
@contextmanager
def warnings_catcher(self):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pantsbuild/pants
Commit Name: 055a36d3de496e8367956ac573041f90a063d44f
Time: 2016-01-25
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/option/test_options.py
Class Name: OptionsTest
Method Name: test_deprecated_option_past_removal
Project Name: HyperGAN/HyperGAN
Commit Name: 7df2119830c3c94a54eebbb627a430cade59408e
Time: 2017-06-02
Author: mikkel@255bits.com
File Name: tests/encoders/match_discriminator_encoder_test.py
Class Name: MatchDiscriminatorEncoderTest
Method Name: test_create
Project Name: dmlc/gluon-nlp
Commit Name: f4275c0b80197e0f1bbd3a2a1a31cf07d85013b1
Time: 2019-01-09
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name: