- Set
stdin
to a closedPIPE
inpytester.py.Testdir.popen()
for avoid unwanted interactivepdb
(#2023)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import, division, print_function, unicode_literals | |
import re | |
import subprocess | |
with open('CHANGELOG.rst') as f: | |
changelog_lines = f.readlines() | |
output = subprocess.check_output('git log --tags --simplify-by-decoration --pretty="format:%ci %d"', shell=True) | |
tags_and_dates = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
os.remove(filename) | |
except PermissionError as e: | |
print('THIS PID', os.getpid()) | |
import psutil | |
for proc in psutil.process_iter(): | |
try: | |
files = proc.open_files() | |
except psutil.AccessDenied: | |
continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pytest_terminal_summary(terminalreporter, exitstatus): | |
import os | |
if exitstatus != 0 and 'JENKINS_URL' in os.environ: | |
markup = {'yellow': True, 'bold': True} | |
terminalreporter.write_sep("=", "ENVIRONMENT", **markup) | |
for k, v in sorted(os.environ.items()): | |
if k: | |
terminalreporter.write_line('%r: %r' % (k, v), **markup) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blacklist: | |
- name: "*" | |
- license: "*agpl*" | |
- license: None | |
- license: "" | |
- build: "*py34*" | |
- build: "*py36*" | |
whitelist: | |
- build: "*py27*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string] | |
$Directory | |
) | |
Measure-Command { Remove-Item -Recurse -Force $Directory } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if not exist ..\etk ( | |
echo Could not find ..\etk | |
exit /b 1 | |
) | |
copy ..\etk\.gitattributes . | |
if errorlevel 1 exit /b 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from: https://doc.qt.io/qt-5/qtcharts-nesteddonuts-example.html | |
import functools | |
import random | |
from PyQt5.QtChart import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtCore import * | |
from PyQt5.QtWidgets import * | |
class Widget(QWidget): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
elementFormDefault="qualified" | |
attributeFormDefault="unqualified"> | |
<xs:annotation> | |
<xs:documentation xml:lang="en">JUnit test result schema for the Apache Ant JUnit and JUnitReport tasks | |
Copyright © 2011, Windy Road Technology Pty. Limited | |
The Apache Ant JUnit XML Schema is distributed under the terms of the Apache License Version 2.0 | |
http://www.apache.org/licenses/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This script maps mouse buttons to keyboard buttons to allow circumventing DSII's limited | |
; mouse button mapping and double-click related lag. Unfortunately, AutoHotKey doesn't | |
; seem to support more than five buttons. | |
; Installation | |
; 1) Download AutoHotKey. | |
; 2) In Dark Souls II, make sure the mouse buttons you're using in this script aren't bound to anything to avoid conflicts. | |
; This script uses Left and Right Click, Middle click is disabled by default, and buttons 4 and 5 aren't supported by DSII. | |
; 3) Run Dark Souls II and map the commands to the keyboard letter associated with the mouse button desired. | |
; Right Click - G |