Skip to content
Snippets Groups Projects
Commit 3bea82dd authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

py3: make tests/test-atomictempfile.py use absolute_import

parent cd3c6f3e
No related branches found
No related tags found
No related merge requests found
from __future__ import absolute_import
import glob
import os
......@@ -1,3 +4,2 @@
import os
import glob
import unittest
......@@ -3,3 +5,2 @@
import unittest
import silenttestrunner
......@@ -5,5 +6,8 @@
from mercurial.util import atomictempfile
from mercurial import (
util,
)
atomictempfile = util.atomictempfile
class testatomictempfile(unittest.TestCase):
def test1_simple(self):
......@@ -39,4 +43,5 @@
self.assertRaises(TypeError, atomictempfile)
if __name__ == '__main__':
import silenttestrunner
silenttestrunner.main(__name__)
......@@ -30,7 +30,6 @@
tests/readlink.py not using absolute_import
tests/run-tests.py not using absolute_import
tests/svn-safe-append.py not using absolute_import
tests/test-atomictempfile.py not using absolute_import
tests/test-demandimport.py not using absolute_import
#if py3exe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment