![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/2QNz7bkA1V.png)
I don’t see how this supports your point then. If “setting up proxy” means “packaging it to run on thousands user machines” then isn’t there obvious and huge potential for a disastrous fuckup?
I don’t see how this supports your point then. If “setting up proxy” means “packaging it to run on thousands user machines” then isn’t there obvious and huge potential for a disastrous fuckup?
Setting up proxy is not engineering.
Of course, but when indentation has a syntactic meaning the formatter often won’t be able to fix it.
It’s probably more prone to mistakes like that, true. But in practice I really never witnessed this actually being a problem. Especially with tests and review.
Yeah, that’s definitely a good point. But it’s a minor thing. Adjusting indentation takes 2 keystrokes in vim, I barely notice it.
So I’m going to say what I always say when people complain about semantic whitespace: Your code should be properly indented anyway. If it’s not, it’s a bad code.
I’m not saying semantic whitespace is superior to brackets or parentheses. It’s clearly not. But it’s not terrible either.
As someone who codes in Python pretty much everyday for years, I NEVER see indentation errors. I didn’t see them back when I started either. Code without indentation is impossible to read for me anyway so it makes zero difference whether the whitespace has semantic meaning or not. It will be there either way.
I’m so excited for Cosmic!
E2E is their flagship feature and pretty much only selling point. I’m really not surprised they don’t allow to just disable it.
Huge thanks to Vaxry and all contributors, Hyprland is great!
Man, I’m just chilling and relaxing after a week of SE work and this resonates with me very deeply
I didn’t expect this to be something I would actually use but I was mildly excited to try it out just out of curiosity. Then it asked me to log in. Login to a fucking terminal emulator. I have no words.
I’m a classic example of an introvert “adopted” by my very extroverted friend. I just want to say that I’m very thankful for them dragging me out of my comfort zone once in a while. I would’ve missed out on a lot of great experiences without them.
I often think how awesome it is that people are so different and how we can help each other by sharing our strengths.
I’m very excited for COSMIC!
Good job Cosmic team!
I really hope Cosmic can be the first DE to close the gap between tilling window managers and DEs we have today. Very excited for it!
Yeah, no difference whatsoever between those services…
I see that Framework and System76 were already mentioned. I would add Slimbook and Tuxedo Computers to the list.
I was just in a market for a Linux laptop and I really wanted a Framework but it’s not available in my country so I settled on Slimbook Executive 14 instead. I have it for around a month now and I’m very satisfied.
If you’re on the edge right now - do it! Taking care of my body and diet was the best decision of my life.
Off topic but I’m surprised by the amount of smart tv hate in this thread.
I have a Philips TV with Android TV. I use it for YouTube, Twitch, Spotify and occasionally for other streaming services. I actually really like the experience. Everything is a few clicks on a remote away, the UI is clean, it works reasonably fast.
I’m not going to argue about privacy though, that’s definitely terrible.
FWIW I never experienced any of the above besides the tracking, that’s there for sure.
Since you have all your
shutil.copytree
s andsys.path
manipulation at the top level of the test modules, they are executed the moment those modules are imported.unittest
likely imports all discovered test modules before actually executing the tests so the set up of both modules is executed in random order before the tests are run. The correct way to perform test setup is usingsetUp
andsetUpClass
methods ofunittest.TestCase
. Their counterpartstearDown
andtearDownClass
are used to clean up after tests. You probably will be able to get this to work somehow using those methods.However, I’m fairly certain that this entire question is an example of the XY problem and you should be approaching this whole thing differently. Copying the modules and their mock dependencies into a temporary directory and manipulating
sys.path
seems like an absolute nightmare and it will be a massive PITA even if you get it to a working state. I don’t know what problem exactly you’re trying to solve but I think you should really read up onunittest.mock
and even more importantly on dependency injection.