We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eca75d commit 574547aCopy full SHA for 574547a
Lib/test/test_importlib/fixtures.py
@@ -1,25 +1,11 @@
1
-from __future__ import unicode_literals
2
-
3
import os
4
import sys
5
import shutil
+import pathlib
6
import tempfile
7
import textwrap
8
import contextlib
9
10
-try:
11
- from contextlib import ExitStack
12
-except ImportError:
13
- from contextlib2 import ExitStack
14
15
16
- import pathlib
17
18
- import pathlib2 as pathlib
19
20
21
-__metaclass__ = type
22
23
24
@contextlib.contextmanager
25
def tempdir():
@@ -58,7 +44,7 @@ def install_finder(finder):
58
44
59
45
class Fixtures:
60
46
def setUp(self):
61
- self.fixtures = ExitStack()
47
+ self.fixtures = contextlib.ExitStack()
62
48
self.addCleanup(self.fixtures.close)
63
49
64
50
0 commit comments