Skip to content

Commit

Permalink
lint: fix errors that appear to be new in #504
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup authored and FrostyX committed Nov 6, 2024
1 parent 167a91c commit e252a4e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/functional/build_gitannex_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from functional.fixture import TitoGitTestFixture, tito

from tito.compat import * # NOQA
from tito.compat import (getstatusoutput, RawConfigParser)
from tito.common import run_command
from tito.builder import GitAnnexBuilder

Expand Down
5 changes: 3 additions & 2 deletions test/functional/fetch_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@

from os.path import join

from tito.common import run_command
from tito.compat import * # NOQA
from functional.fixture import TitoGitTestFixture, tito
from unit import Capture, is_epel6, is_rawhide, skip_if_rpmbuild

from tito.common import run_command
from tito.compat import RawConfigParser

if is_epel6:
import unittest2 as unittest
else:
Expand Down
2 changes: 1 addition & 1 deletion test/functional/release_copr_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from unit import titodir

from tito.compat import * # NOQA
from tito.compat import RawConfigParser
from tito.release import CoprReleaser

PKG_NAME = "releaseme"
Expand Down
4 changes: 2 additions & 2 deletions test/functional/release_yum_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
import os
import shutil
import tempfile
import sys

from os.path import join

from functional.fixture import TitoGitTestFixture, tito

from tito.compat import * # NOQA
from tito.compat import RawConfigParser
from tito.common import run_command


# There is not many simple options to check on what distribution this is running.
# Fortunately, we only need to check for Fedora Rawhide and EPEL6, so we can
# determine it from python version. This is compatible for all distributions.
import sys
is_rawhide = sys.version_info[:2] >= (3, 8)
is_epel6 = sys.version_info[:2] == (2, 6)

Expand Down
8 changes: 4 additions & 4 deletions test/unit/pep8_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
http://docs.python.org/3.3/reference/lexical_analysis.html
"""

import os
import unittest

try:
# python-pep8 package is retired in Fedora because upstream
# moved to pycodestyle. Please see
Expand All @@ -29,13 +32,10 @@
except ImportError:
import pycodestyle as pep8


import unittest

from unit.fixture import TitoUnitTestFixture, REPO_DIR
from unit import skip_if_tox

from tito.compat import * # NOQA
from tito.compat import getoutput
from tito.compat import StringIO, redirect_stdout


Expand Down

0 comments on commit e252a4e

Please sign in to comment.