This instance was upgraded to Heptapod 0.21.0 (final) today

Commit 5c95e322 authored by Manuel Jacob's avatar Manuel Jacob

tests: rename module-level setup function from `setup()` to `setup_module()`

Nosetests treats both the same way. Pytest only understands `setup_module()`.

In addition, one `teardown()` was renamed to `teardown_module()`.
parent c59bd6104b8d
......@@ -3,12 +3,12 @@ import sys
from nose.tools import *
from tortoisehg.util import colormap
def setup():
def setup_module():
global _origmaxint
_origmaxint = sys.maxsize
sys.maxsize = int((1 << 31) - 1)
def teardown():
def teardown_module():
sys.maxsize = _origmaxint
def fakectx(userhash, date, tz=0):
......
......@@ -5,7 +5,7 @@ from tortoisehg.hgqt import filedata, thgrepo
import helpers
def setup():
def setup_module():
global _tmpdir
_tmpdir = helpers.mktmpdir(__name__)
......
......@@ -10,7 +10,7 @@ from tortoisehg.util import hglib
import helpers
def setup():
def setup_module():
global _tmpdir
_tmpdir = helpers.mktmpdir(__name__)
......
......@@ -8,7 +8,7 @@ from tortoisehg.util import hglib
import helpers
def setup():
def setup_module():
global _tmpdir
_tmpdir = helpers.mktmpdir(__name__)
......
......@@ -8,7 +8,7 @@ from tortoisehg.util import hglib
import helpers
def setup():
def setup_module():
global _tmpdir
_tmpdir = helpers.mktmpdir(__name__)
......
......@@ -27,7 +27,7 @@ from tortoisehg.hgqt.manifestmodel import ManifestModel
import helpers
def setup():
def setup_module():
# necessary for style().standardIcon()
if not isinstance(QApplication.instance(), QApplication):
raise SkipTest
......
......@@ -11,7 +11,7 @@ from tortoisehg.util import wconfig
import helpers
def setup():
def setup_module():
global _tempdir
_tempdir = helpers.mktmpdir(__name__)
......
......@@ -8,6 +8,6 @@ from tortoisehg.hgqt.qtgui import (
QApplication,
)
def setup():
def setup_module():
if not isinstance(QApplication.instance(), QApplication):
raise SkipTest
......@@ -16,7 +16,7 @@ from tortoisehg.hgqt import (
import helpers
def setup():
def setup_module():
global _tmpdir
_tmpdir = helpers.mktmpdir(__name__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment