mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +00:00
Remove Python 2 support.
This commit is contained in:
@@ -13,19 +13,7 @@ import unittest
|
||||
from common_test import AATest, setup_all_loops
|
||||
from apparmor.common import AppArmorBug
|
||||
|
||||
from apparmor.common import type_is_str, split_name, combine_profname
|
||||
|
||||
class TestIs_str_type(AATest):
|
||||
tests = (
|
||||
('foo', True),
|
||||
(u'foo', True),
|
||||
(42, False),
|
||||
(True, False),
|
||||
([], False),
|
||||
)
|
||||
|
||||
def _run_test(self, params, expected):
|
||||
self.assertEqual(type_is_str(params), expected)
|
||||
from apparmor.common import split_name, combine_profname
|
||||
|
||||
class AaTest_split_name(AATest):
|
||||
tests = (
|
||||
|
Reference in New Issue
Block a user