Posts by Mateus Martins • 147 points
3 posts
-
0
votes2
answers2567
viewsA: Junit Eclipse Error: "No test found with test Runner Junit 5"
if you’re trying with junit 5, you put @Runwith(Junitplatform.class) imports org.junit.Platform.runner.Junitplatform; because then eclipse recognizes junit test classes as test classes
-
2
votes2
answers196
viewsA: Python 3 - Unexpected Flow Control when running IF/IF NOT or IF/ELSE
Leonardo Lima’s answer is correct, but only a deeper explanation of why. Generally speaking, it’s pretty simple. See below the difference of this code: luz_acessa = False def interruptor(): global…
-
1
votes2
answers2017
viewsA: Python - How to build a good function to check for internet?
Hello, you can use the following code that attempts a connection to the google IP if the ip does not work, just use the ping command and the google url to get an updated ip import urllib2 def…
python-3.xanswered Mateus Martins 147