Skip to content

Instantly share code, notes, and snippets.

@cdleonard
cdleonard / ..check-pytest-asyncio-doctest-import-error
Last active March 8, 2024 11:25
Check compatibility between pytest-asyncio and --doctest-ignore-import-error
We couldn’t find that file to show.
@cdleonard
cdleonard / test_toy.py
Created October 26, 2021 11:34
pytest autoused class-scoped fixture
import pytest
class Toy:
def get_color(self):
raise NotImplementedError()
def is_fun(self):
return True

Keybase proof

I hereby claim:

  • I am cdleonard on github.
  • I am cdleonard (https://keybase.io/cdleonard) on keybase.
  • I have a public key whose fingerprint is AD5F DB6D 1942 7E1C C4DF C9ED 60DF 8E21 39BD 1093

To claim this, I am signing this object:

@cdleonard
cdleonard / grub-kdev.cfg
Last active April 26, 2021 20:02
grub environment variables useful for kernel dev
#
# grub environment variables useful for kernel dev
#
# See https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html
#
# On ubuntu copy to /etc/default/grub.d/ and update-grub
#
# Boot into last version
GRUB_DEFAULT=saved
digraph {
rankdir = LR
node [shape = record]
subgraph cluster_1 {
label = "32700000.interconnect"
"1:NOC" [label="1:NOC
|avg_bw=0kBps
|peak_bw=0kBps"]
"2:DRAM" [label="2:DRAM
|avg_bw=0kBps
digraph {
rankdir = LR
node [shape = record]
subgraph cluster_1 {
label = "32700000.interconnect"
"1:NOC" [label="1:NOC
|avg_bw=0kBps
|peak_bw=678900kBps"]
"2:DRAM" [label="2:DRAM
|avg_bw=0kBps
#! /bin/bash
set -e
pr_info()
{
echo "$@" >&2
exit 1
}