Permalink
Browse files

another try to fix tkintrer issues

  • Loading branch information...
sdpython committed Jun 15, 2017
1 parent 4b97ab2 commit 040bb1c8ceaa104b1ef3ce61d4b27e851a43e4c4
@@ -39,20 +39,10 @@
from pyquickhelper.loghelper import fLOG, CustomLog
from pyquickhelper.pycode import get_temp_folder, fix_tkinter_issues_virtualenv
from src.code_beatrix.algorithm.data import load_prenoms_w
from src.code_beatrix.algorithm.classroom import random_positions, plot_positions
class TestClassRoomShort(unittest.TestCase):
def test_names(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
names = load_prenoms_w()
self.assertEqual(len(names), 50)
class TestClassRoomShort1(unittest.TestCase):
def test_random_position(self):
fLOG(
@@ -0,0 +1,57 @@
#-*- coding: utf-8 -*-
"""
@brief test log(time=2s)
"""
import sys
import os
import unittest
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not in sys.path:
sys.path.append(path)
import src
try:
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper as skip_
from pyquickhelper.loghelper import fLOG
from src.code_beatrix.algorithm.data import load_prenoms_w
class TestClassRoomShort2(unittest.TestCase):
def test_names(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
names = load_prenoms_w()
self.assertEqual(len(names), 50)
if __name__ == "__main__":
unittest.main()

0 comments on commit 040bb1c

Please sign in to comment.