diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-06-19 10:06:04 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-08-10 21:46:14 +0300 |
| commit | 7082dfe547aba74007d5a634010216f732eb0af9 (patch) | |
| tree | c0eef6d1fa6ee9f07f9761ec15b8336fcd7d9edf /unittests | |
| parent | dce9c554536928bb55667d6ca53b24ad91c4c475 (diff) | |
| download | meson-7082dfe547aba74007d5a634010216f732eb0af9.tar.gz | |
unittests: remove FakeCompilerOptions
It does not seem to be needed anymore, and the incomplete mock does
not have for example the "yielding" attribute that is used by
OptionStore.get_value_object_and_value_for.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/internaltests.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/unittests/internaltests.py b/unittests/internaltests.py index d803f0479..e8742eb2e 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -44,10 +44,7 @@ from mesonbuild.programs import ExternalProgram import mesonbuild.modules.pkgconfig from mesonbuild import utils - -from run_tests import ( - FakeCompilerOptions, get_fake_env, get_fake_options -) +from run_tests import get_fake_env, get_fake_options from .helpers import * @@ -629,7 +626,6 @@ class InternalTests(unittest.TestCase): env = get_fake_env() compiler = detect_c_compiler(env, MachineChoice.HOST) env.coredata.compilers.host = {'c': compiler} - env.coredata.optstore.set_value_object(OptionKey('c_link_args'), FakeCompilerOptions()) p1 = Path(tmpdir) / '1' p2 = Path(tmpdir) / '2' p1.mkdir() |
