aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-10 19:05:15 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-01-04 21:29:02 +0200
commit0538009d30c02aba7f3b0e2fb22589c55fbe0fd0 (patch)
tree6c625610f9c9d6ac72aa6c83800b5964ccdf71a7 /run_unittests.py
parent65f78a722ad0f8ab260e7cf24636ef38e8bd957f (diff)
downloadmeson-0538009d30c02aba7f3b0e2fb22589c55fbe0fd0.zip
meson-0538009d30c02aba7f3b0e2fb22589c55fbe0fd0.tar.gz
meson-0538009d30c02aba7f3b0e2fb22589c55fbe0fd0.tar.bz2
Bump minimum supported Python from 3.4 to 3.5.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/run_unittests.py b/run_unittests.py
index dae72a8..08ad632 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -191,26 +191,6 @@ class InternalTests(unittest.TestCase):
l.append_direct('-lbar')
self.assertEqual(l, ['-Lfoodir', '-lfoo', '-Lbardir', '-lbar', '-lbar'])
- def test_commonpath(self):
- from os.path import sep
- commonpath = mesonbuild.mesonlib.commonpath
- self.assertRaises(ValueError, commonpath, [])
- self.assertEqual(commonpath(['/usr', '/usr']), sep + 'usr')
- self.assertEqual(commonpath(['/usr', '/usr/']), sep + 'usr')
- self.assertEqual(commonpath(['/usr', '/usr/bin']), sep + 'usr')
- self.assertEqual(commonpath(['/usr/', '/usr/bin']), sep + 'usr')
- self.assertEqual(commonpath(['/usr/./', '/usr/bin']), sep + 'usr')
- self.assertEqual(commonpath(['/usr/bin', '/usr/bin']), sep + 'usr' + sep + 'bin')
- self.assertEqual(commonpath(['/usr//bin', '/usr/bin']), sep + 'usr' + sep + 'bin')
- self.assertEqual(commonpath(['/usr/./bin', '/usr/bin']), sep + 'usr' + sep + 'bin')
- self.assertEqual(commonpath(['/usr/local', '/usr/lib']), sep + 'usr')
- self.assertEqual(commonpath(['/usr', '/bin']), sep)
- self.assertEqual(commonpath(['/usr', 'bin']), '')
- self.assertEqual(commonpath(['blam', 'bin']), '')
- prefix = '/some/path/to/prefix'
- libdir = '/some/path/to/prefix/libdir'
- self.assertEqual(commonpath([prefix, libdir]), str(PurePath(prefix)))
-
def test_string_templates_substitution(self):
dictfunc = mesonbuild.mesonlib.get_filenames_templates_dict
substfunc = mesonbuild.mesonlib.substitute_values