2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Order imports and module-level dunder name assignments.

This commit is contained in:
Mark Grassi
2022-08-07 20:32:07 -04:00
parent ea3fb60007
commit c57138f255
79 changed files with 269 additions and 323 deletions

View File

@@ -15,12 +15,11 @@
# - check cache not used if parser in $PATH is newer
# - check cache used for force-complain, disable symlink, etc.
from argparse import ArgumentParser
import os
import shutil
import time
import tempfile
import unittest
from argparse import ArgumentParser
import testlib

View File

@@ -13,10 +13,10 @@
#
# ------------------------------------------------------------------
from argparse import ArgumentParser
import os
import unittest
import subprocess
import unittest
from argparse import ArgumentParser
import testlib
config = None

View File

@@ -10,11 +10,12 @@
#
# ------------------------------------------------------------------
from testlib import read_features_dir
from argparse import ArgumentParser
import os
from argparse import ArgumentParser
from sys import stderr, exit
from testlib import read_features_dir
DEFAULT_FEATURES_DIR = '/sys/kernel/security/apparmor/features'

View File

@@ -13,13 +13,14 @@
# TODO
# - finish adding suppressions for valgrind false positives
from argparse import ArgumentParser
import os
import sys
import unittest
import testlib
from argparse import ArgumentParser
from tempfile import NamedTemporaryFile
import testlib
DEFAULT_TESTDIR = "./simple_tests/vars"
VALGRIND_ERROR_CODE = 151
VALGRIND_ARGS = ['--leak-check=full', '--error-exitcode=%d' % (VALGRIND_ERROR_CODE)]