Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions Lib/test/test_importlib/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
from __future__ import unicode_literals

import os
import sys
import shutil
import pathlib
import tempfile
import textwrap
import contextlib

try:
from contextlib import ExitStack
except ImportError:
from contextlib2 import ExitStack

try:
import pathlib
except ImportError:
import pathlib2 as pathlib


__metaclass__ = type


@contextlib.contextmanager
def tempdir():
Expand Down Expand Up @@ -58,7 +44,7 @@ def install_finder(finder):

class Fixtures:
def setUp(self):
self.fixtures = ExitStack()
self.fixtures = contextlib.ExitStack()
self.addCleanup(self.fixtures.close)


Expand Down