Skip to content

Commit

Permalink
fix other python2 test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rtaycher committed Aug 31, 2020
1 parent f006cad commit c051026
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_past/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
from contextlib import contextmanager

from future.tests.base import unittest
from past.builtins import cmp
from future.utils import PY3

if PY3:
from past.builtins import cmp

_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(_dir)
Expand All @@ -20,7 +23,7 @@

@contextmanager
def empty_context_manager(*args, **kwargs):
return dict(args=args, kwargs=kwargs)
yield dict(args=args, kwargs=kwargs)


class TestCmp(unittest.TestCase):
Expand Down

0 comments on commit c051026

Please sign in to comment.